Solved

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

Posted on 1997-03-11
3
395 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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
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.

746 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now