PDA

View Full Version : Linking Errors



Google22
11th April 2006, 21:14
Errors.. What am I missing? Trying to compile Simple Source 2.6



--------------------Configuration: NoRecoil - Win32 Release--------------------
Linking...
Simple.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall FName::FName(char const *,enum EFindName)" (__imp_??0FName@@QAE@PBDW4EFindName@@@Z)
Simple.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall FCanvasUtil::DrawString(int,int,char const *,class UFont *,class FColor)" (__imp_?DrawString@FCanvasUtil@@QAEHHHPBDPAVUFont@ @VFColor@@@Z)
Simple.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __cdecl appSprintf(char *,char const *,...)" (__imp_?appSprintf@@YAHPADPBDZZ)
Release/Test.dll : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.

Test.dll - 4 error(s), 0 warning(s)

unreal-pwner
11th April 2006, 21:23
make sure you've include all your libs... thats a start, also, if your using vs.net 2003, like i am, i get the same problem, i can compile an already made file, but as soon as i make a new project, im screwed... umm... check your libs first of all thats a good start

Google22
11th April 2006, 21:33
I included all of the lib's now, but I still get 4 linker errors, i edited my post above

Zizax
11th April 2006, 22:20
#define ENGINE_API DLL_IMPORT

#include <windows.h>
#include <math.h>
#include <stdio.h>
#include <Vector>
#include <TCHAR.H>

#pragma comment(lib, "Core")
#pragma comment(lib, "Engine")
#pragma comment(lib, "AGP")
#include "Core\Core.h"
#include "CoreClasses.h"
#include "EngineClasses.h"
#include "AGPClasses.h"
using namespace std;

i had the same error but now with those includes and libs everything works fine

Google22
11th April 2006, 22:45
hmm still receiving them..:cry:

unreal-pwner
11th April 2006, 22:46
ok thanks, ill try it as well, i have the EXACT SAME ERRORS as google. so i appreciate it as well! thanks very much



p.s. i havent tried them yet. so ill try them and post... thx anyway tho lol