This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: DLL and VB problems


I am sorry that I am not very clear...

Below is the problem:

I wrote C client to this dll and when I try to compile the client to use
the dll using the command: gcc -o hello.exe hello.o -L. -ldllhello,  I get
the following error:
c): undefined reference to `_WinMain@16'
collect2: ld returned 1 exit status

PS: dllhello is the dll; hello.c is the client C program.

Thank you.


On Thu, 16 Oct 2003, Igor Pechtchanski wrote:

> On Thu, 16 Oct 2003, Paul Bezzam wrote:
> > Hello,
> >
> > I have created a DLL using gcc on Cygwin, and I wrote a client in VB
> > accessing this DLL.  The application runs fine for the first time, but
> > when run again, it crashes.  I have to close the application and run it to
> > work successfully.
> >
> > Can anyone please give me some directions.
> >
> > Thanks.
> > Paul
> "Crashes" is a very vague word.  Where does it crash?  What options did
> you give to GCC?  What version of GCC are you using?  Can you use this DLL
> from a C program?
> 	Igor
> --
>       |\      _,,,---,,_
> ZZZzz /,`.-'`'    -.  ;-;;,_
>      |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
>     '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
> "I have since come to realize that being between your mentor and his route
> to the bathroom is a major career booster."  -- Patrick Naughton
> --
> Unsubscribe info:
> Problem reports:
> Documentation:
> FAQ:         

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]