Solved

Unresolved Linker Error using MIDI Streams in Borland C++ 5.01

Posted on 1997-03-11
3
411 Views
Last Modified: 2012-05-04
When I try to use any of the MIDI stream functions in Borland C++ 5.01 (midiStreamOpen, midiStreamClose, etc), I get an  "Unresolved External" error in the linker.  The header information for these functions is contained in mmsystem.h, so the program compiles fine.  But it can't seem to find the libraries needed for linking.  I'm compiling a 32-bit Windows program, which is the only platform these functions are available on.

Usage Example:
  midiStreamOpen(&midistream_handle, &out_device_id, 1, NULL, NULL, CALLBACK_NULL);

Error Text:
  Error:  Error: Unresolved external 'midiStreamOpen' referenced from module midiint.cpp

Thanks.
0
Comment
Question by:sbrown031197
3 Comments
 
LVL 3

Expert Comment

by:JPM
ID: 1162295
Have you checked out the path ?
    - of  libraries in the IDE project ?
    - in autoexec  file   ?
OR
Maybe , a symbol is missing in a DEFINE ......
so if the function stands inside an
      #ifdef .... ..... #endif
it's never used!
       JeanPaul


0
 

Author Comment

by:sbrown031197
ID: 1162296

0
 
LVL 23

Accepted Solution

by:
chensu earned 70 total points
ID: 1162297
By default, the multimedia library are not linked. For Microsoft Visual C++ 4.2, you should add the winmm.lib to Project Settings/Link/Object,library modules/. For Borland C++, I think it is the same.

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question