Subject: problem linking to win95 DLL
From: [email-masked] (Joe Armstrong)

19 Nov 1998 16:58:33 -0800
Message-ID: <[email-masked]>
To: [email-masked]

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
"[email-masked]" with one line of text: "help".