problem linking to win95 DLL

Joe Armstrong joe@erix.ericsson.se
Thu Nov 19 04:23:00 GMT 1998


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".



More information about the Cygwin mailing list