Solved

Visual studio external symbol error

Posted on 2011-02-17
1
695 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
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.

828 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