Solved

Visual studio external symbol error

Posted on 2011-02-17
1
688 Views
Last Modified: 2012-05-11
I am creating a game in gamebryo and I have an error that I am having a problem with. This error below.

SoundManager.obj : error LNK2019: unresolved external symbol "bool __cdecl SoundSystemSpecificInitialization(void)" (?SoundSystemSpecificInitialization@@YA_NXZ) referenced in function "public: bool __thiscall SoundManager::Initialize(void)" (?Initialize@SoundManager@@QAE_NXZ)

Does this error mean that he correct library is missing from the linker?
0
Comment
Question by:tango2009
1 Comment
 
LVL 9

Accepted Solution

by:
AriMc earned 500 total points
ID: 34920083
It can be a missing library or a plain C prototype include file not prepared properly for C++.
Plain C functions used in C++ code should be introduced like this:

#ifdef __cplusplus
extern "C" {
#endif

int myPlainCFunction(int param1);

#ifdef __cplusplus
}    
#endif



0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

914 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

16 Experts available now in Live!

Get 1:1 Help Now