delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/11/19/16:58:33

From: joe AT erix DOT ericsson DOT se (Joe Armstrong)
Subject: problem linking to win95 DLL
19 Nov 1998 16:58:33 -0800 :
Message-ID: <199811190946.KAA28212.cygnus.gnu-win32@gordons.du.etx.ericsson.se>
To: gnu-win32 AT cygnus DOT com

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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019