undefined symbol

M

mikethebike

Hello
dlerror:/home/michael/X-Plane/Resources/plugins/Cit_X.xpl: undefined
symbol: pScene

main.cpp:
------
#include "includes/carmine_defs.h"

extern fScene pScene;
createParent(&pScene);

declaration in carmine_defs.h:
------
typedef struct
{
/// Pointer to array of texture entry objects describing the textures
used in the scene.
fTextureEntry* m_parrTextureEntry;
etc.
}fScene;

void createParent(fScene* pScene);

and in carmine_defs.c
--------
void createParent(fScene* pScene)

Why this error? What am i doing wrong?
Many thanks
Michael
 
M

mzdude

Hello
dlerror:/home/michael/X-Plane/Resources/plugins/Cit_X.xpl: undefined
symbol: pScene

main.cpp:

The extern says that pScene is declared in some other
..c or .cpp file. From the code you posted, there were
no declaration of pScene. Drop the extern and it should
at least compile and link.
 
M

mikethebike

Hi
when I drop extern I get:

dlerror:/home/michael/X-Plane/Resources/plugins/Cit_X.xpl: undefined
symbol: _Z12createParentP6fScene

Thanks again
Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top