Solved

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

Posted on 1997-03-11
3
417 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
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…
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.
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.

622 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