delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/11/20/14:51:38

From: colin AT fu DOT is DOT saga-u DOT ac DOT jp (Colin Peters)
Subject: RE: problem linking to win95 DLL
20 Nov 1998 14:51:38 -0800 :
Message-ID: <005401be1446$1bcc6980$fa173185.cygnus.gnu-win32@gbird0.fu.is.saga-u.ac.jp>
Mime-Version: 1.0
To: "Joe Armstrong" <joe AT erix DOT ericsson DOT se>
Cc: "GNU-win32" <gnu-win32 AT cygnus DOT com>

Joe Armstrong <joe AT erix DOT ericsson DOT se> wrote:

[snip]
>I have a little c program which uses the windows multi-media interface.
[snip]
>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
[snip]

The problem here I suspect is that the proper prototype is not included in
the current set of Win32 API headers. So, you may have to go to the
Windows32/Functions.h and ASCIIFunctions.h and UnicodeFunctions.h and add
the prototypes and defines. By looking at winmm.def it looks like you will
need to to the ASCII/Unicode thing for this function, and also it looks like
they are prototyped WINAPI (or STDCALL). Strangely enough I can't seem to
find mciSendString in any of my documentation, but that may be because I
only have docs for the core API.

Colin.

- Colin Peters - colin at fu.is.saga-u.ac.jp
- http://www.geocities.com/Tokyo/Towers/6162/index.html
- Go not to usenet for counsel, for it will say both
- 'yes' and 'no' and 'try another newsgroup'.



-
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