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]

problem linking to win95 DLL



Here's my problem.

I'm totally new to B20. but it seems the answer to my dreams ..

I have a little c program which uses the windows multi-media interface.

The FAQ says


>  For example, to use graphics functions (GDI) you must link with gdi32 
>  like this: 
>  
>  gcc -o foo.exe foo.o bar.o -lgdi32 
   **********************************
>  
>  or (compiling and linking in one step): 
>  
>  gcc -o foo.exe foo.c bar.c -lgdi32 
>  
>  The following libraries are available for use in this way: 
>  
>  advapi32 largeint ...
>  ... winmm comdlg32 ...

Here's what happens

---- start -----
sh-2.02$ gcc -o foo.exe mci.c -lwinmm
         ****************************
\TEMP\ccmsCWrZ.o(.text+0x346):mci.c: undefined reference to `mciSendString'
\TEMP\ccmsCWrZ.o(.text+0x372):mci.c: undefined reference to `mciGetErrorString

llect2: ld returned 1 exit status
---- end ----

Any ideas?


	/Joe

-
For help on using this list (especially unsubscribing), 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]