Solved

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

Posted on 1997-03-11
3
405 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

776 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