Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Compilation Error LNK2001
Grashwandir Offline
Junior Member

Posts: 2
Threads: 1
Joined: Jun 2013
Reputation: 0
#1
Compilation Error LNK2001

Hello there,
first forgive my english, I'm not native,
so I'm very interested by HPL engine because I want to try programming a game engine by myself as a hobby, and I have a lot to learnBig Grin!

I follow the JKO Guide, and eventually succeed to compile HPL and OALWrapper (correctly I suppose, ie. with alut) but overture resists!

I searched a lot (I read almost all error post, I don't want to duplicate a post Confused) on the forum, but didn't find anything...

The error is (message is in french but pretty explicit) :
-------------------------------------------
Erreur 2 error LNK2001: symbole externe non résolu "public: __thiscall cOAL_CustomStream::cOAL_CustomStream(struct tStreamCallbacks const &,struct tStreamInfo const &,void *)" (??0cOAL_CustomStream@@QAE@ABUtStreamCallbacks@@ABUtStreamInfo@@PAX@Z) D:\C++\FrictionalGame\OuvertureSource\PenumbraOverture\OALWrapper.lib(OAL_Device.obj)
-------------------------------------------

I really want to understand how this thing work, but I'm not familiar with linking library...
Need little help, please...
(This post was last modified: 06-19-2013, 12:44 PM by Grashwandir.)
06-19-2013, 11:13 AM
Find
oipoistar Offline
Junior Member

Posts: 3
Threads: 1
Joined: Jun 2013
Reputation: 0
#2
RE: Compilation Error LNK2001

(06-19-2013, 11:13 AM)Grashwandir Wrote: Need little help, please...

I had the same issue yesterday:
http://www.frictionalgames.com/forum/thread-21859.html

Basically the project doesn't contain the OAL_CustomStream.cpp file but it is present on your drive. So just include it into the project and it should compile fine.
(This post was last modified: 06-19-2013, 11:40 AM by oipoistar.)
06-19-2013, 11:39 AM
Find
Grashwandir Offline
Junior Member

Posts: 2
Threads: 1
Joined: Jun 2013
Reputation: 0
#3
RE: Compilation Error LNK2001

I'm really stupidDodgy, I thought that just having the file in the directory was enough... but I had to add it in the OALWrapper project files (which could compile without it and without any error!) with the header.
AND it works fine!
HeartHeartHeart
Thank you a lot!

Now I have to test running it... so maybe see u soon ^^
06-19-2013, 12:43 PM
Find




Users browsing this thread: 2 Guest(s)