PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

PC Build with VS

Hello,

I get the following errors when compiling Animate3D with VS 2005 and carbide 3.0.1

1>------ Build started: Project: animate3d, Configuration: Debug Win32 ------
1>Compiling...
1>animate3d.cpp
1>Compiling resources...
1>Compiling manifest to resources...
1>Linking...
1>animate3d.obj : error LNK2019: unresolved external symbol "public: static void __cdecl ClassEMemory::Copy(void *,void const *,int,bool)" (?Copy@ClassEMemory@@SAXPAXPBXH_N@Z) referenced in function "void __cdecl ERender_Get_BltFast8(void * *)" (?ERender_Get_BltFast8@@YAXPAPAX@Z)
...
...
...
1>.\Debug/animate3d.exe : fatal error LNK1120: 143 unresolved externals
1>Build log was saved at "file://c:\Projects\Edge\samples\Animate3D\workspace_pc_vc2005\Debug\BuildLog.htm"
1>animate3d - 144 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Hi Lance,

It seems there are some missing libraries. Are you linking the edge, edgerender and zlib libraries? If yes, which one do you link (symbian or pc-x86)?
Hey Edge,

I figured I would just add to this post rather than make a new one for the same problem. I am getting the exact same issue as lanceabson was (though different files). I can link the rest if you think it will help.

Code:

1>edge.lib(emod_dsp.obj) : error LNK2019: unresolved external symbol "unsigned long __cdecl EdgeGL_GenTexture(void *)"


I know it usually means an include issue, but to the best of my knowledge all of my includes and libs are linked correctly in VS2008. I am running on Windows Vista and trying to compile for a Gizmondo in case you need to know.

In my "Include.h" file I have the following:

Code:

//Use OpenGL
#define EGL_USEGL

//Include EDGELIB
#include "edge.h"

//Link the EDGELIB static library
#pragma comment(lib, "edge.lib")
#pragma comment(lib, "edgerender.lib")
#pragma comment(lib, "zlib.lib")


And in my "Main.h" I have:

Code:

#include "Include.h"

#include "EdgeMain.h"

class Main : public ClassEdge
{


Despite this, I am still getting the same errors as posted above. Thanks for any help you (or anyone else) can provide me with.

PS: I have also already disabled the "Buffer Security Check" as well.
Hi,

The link error is caused because of a missing library, the includes are fine.

Did you define EGL_USEGL? If yes, then you need to link an OpenGL plugin library (check the plugin1-0.lib library file in /edge/lib/gizmondo/opengl).
Thanks for the quick response Edge. I already had EGL_USEGL defined. I added a line to load the .lib file you indicated to my "Include.h". I have the "opengl" folder added to the list of "Additional Library Directories".

Code:

//Use OpenGL
#define EGL_USEGL

//Include EDGELIB
#include "edge.h"

//Link the EDGELIB static library
#pragma comment(lib, "edge.lib")
#pragma comment(lib, "edgerender.lib")
#pragma comment(lib, "zlib.lib")

#pragma comment(lib, "plugin1-0.lib")


However, I am still getting the same linking errors.
Hi,

That's strange. Also you get a linker error for only one function (and not more EdgeGL_xxx functions)?

Also, are you trying to build for Gizmondo with Visual Studio 2008?