Page 1 of 1

Strange compiling quirks

Posted: Fri Nov 21, 2003 10:36 pm
by Tyn
Hello ( seems I spend more and more time moaning nowadays :D )

I have some code that I have modified from the examples. I started writing it straight in the Example 2 project file, compiled it and it worked fine. Then I made a new project, kept it in the examples folder for now, created the new .cpp file and copied the code across. Now when I compile it says unresolved symbol. Is it something to do with the project settings?

Posted: Fri Nov 21, 2003 10:56 pm
by stampsm
you need to include the libraries and the includes
ifyou using dev cpp there is a tutorial on the tutorial page about this
if msvc++ i think the first tutorial tells how to do this

Posted: Fri Nov 21, 2003 10:58 pm
by Tyn
Do you mean setting up the library and header paths for the compiler? I got VC++ and already done that, plus I got the #include calls at the top of my file so I don't know why it doesn't work :?

Posted: Fri Nov 21, 2003 11:49 pm
by stampsm
did you copy and paste or just retype

Posted: Sat Nov 22, 2003 12:34 am
by Tyn
Edited the example file .cpp to include a status bar at the bottom. It compiled fine in the project, but when I copied the code and made a new project it wouldn't compile.

Posted: Sat Nov 22, 2003 8:10 pm
by Tyn
This gets stranger and stranger...

It's definatly not the engine, it's the workspace file that is created. I went through the workspace files from the examples and the one I created and they were slight differences ( apart from German comments ). I copied the differences from the example ( apart from the German comments obviously ) over to the workspace I created and it works. Has anyone else seen this? If it helps I can give a list of the differences, but if anyone else has seen this before they may recognise the errors. Not a major problem just a slight pain in the arse :)