This is the mail archive of the cygwin@sourceware.cygnus.com 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]

Linking with .LIB files


     
     Yes, I know this has been covered before.  Unfortunately, I can't find 
     the necessary information to get this to work other than to use 
     link.exe and it might work.
     
     So, I have a simple program which uses OpenGL and I link with the 
     following:
     
     link simple.o libuser32.a glu32.lib opengl32.lib libgdi32.a 
     /subsystem:windows /machine:i386
     
     And of course, I get the following:
     
      Microsoft (R) 32-Bit Incremental Linker Version 5.00.7022
      Copyright (C) Microsoft Corp 1992-1997. All rights reserved.
      
      LINK : error LNK2001: unresolved external symbol _WinMainCRTStartup
      simple.exe : fatal error LNK1120: 1 unresolved externals
      make: *** [simple.exe] Error 25
     
     No .EXE is generated.  And the answer is... what?
     
     Dave
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


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