Linker & BuildError Compiling "Demo" (Dev-Cpp)

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Murphy
Posts: 290
Joined: Mon Dec 13, 2004 12:06 am
Location: United States
Contact:

Post by Murphy »

C2L-Studios wrote:*EDIT* won't work from a DOS Box either...
You changed the project type to Win32 Console and it doesn't print ANYTHING to the console?
C2L-Studios
Posts: 16
Joined: Tue Mar 08, 2005 11:43 pm

Post by C2L-Studios »

I dont think this could be because of incomplete paths either...

(e.g. "../../media/sydney.md2")
Murphy
Posts: 290
Joined: Mon Dec 13, 2004 12:06 am
Location: United States
Contact:

Post by Murphy »

If you're running it from the directory the source was in inside the expanded Irrlicht archive, it shouldn't be the paths. That's what I'm doing.

But from what the console output... that appears to be the output of some compression/decompression test program or something. I don't think you're compiling what you think you're compiling. Whether this is user error or a problem with your dev environment, I have no idea.

In particular, you might want to check your main.cpp and see what's inside and make sure it's the Irrlicht demo code! The first line should read "// This is a Demo of the Irrlicht Engine (c) 2005 by N.Gebhardt."

You could also try using my IrrlichDemo.dev. Create a text file in the examples\Demo folder, and paste the following into it. You may need to edit the Includes and Linker paths (you could do it in a text editor, or in the Dev C++ IDE). Then rename it to IrrlichtDemo.dev.

Code: Select all

[Project]
FileName=IrrlichtDemo.dev
Name=IrrlichtDemo
UnitCount=3
Type=1
Ver=1
ObjFiles=
Includes=C:\SDK\irrlicht-0.8\include
Libs=
PrivateResource=
ResourceIncludes=
MakeIncludes=
Compiler=
CppCompiler=
Linker=../../lib/DevCpp/libIrrlicht.a_@@_../../../../Dev-Cpp/lib/audiere.lib_@@_
IsCpp=1
Icon=
ExeOutput=
ObjectOutput=
OverrideOutput=0
OverrideOutputName=IrrlichtDemo.exe
HostApplication=
Folders=
CommandLine=
UseCustomMakefile=0
CustomMakefile=
IncludeVersionInfo=0
SupportXPThemes=0
CompilerSet=0
CompilerSettings=000000000000000000000

[Unit1]
FileName=CDemo.cpp
CompileCpp=1
Folder=IrrlichtDemo
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit2]
FileName=CMainMenu.cpp
CompileCpp=1
Folder=IrrlichtDemo
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit3]
FileName=main.cpp
CompileCpp=1
Folder=IrrlichtDemo
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[VersionInfo]
Major=0
Minor=1
Release=1
Build=1
LanguageID=1033
CharsetID=1252
CompanyName=
FileVersion=
FileDescription=Developed using the Dev-C++ IDE
InternalName=
LegalCopyright=
LegalTrademarks=
OriginalFilename=
ProductName=
ProductVersion=
AutoIncBuildNr=0
C2L-Studios
Posts: 16
Joined: Tue Mar 08, 2005 11:43 pm

Post by C2L-Studios »

ok, I did that, and.... IT WORKED!! Thanks so much! Man if you aren'tlready, you should be a MOD! Thanks for your help!

C2L-Studios
Wmbest2
Posts: 7
Joined: Thu Aug 19, 2004 10:33 pm
Location: PA, USA
Contact:

Post by Wmbest2 »

Would some one be able to clarify how to fix DX? Or was that issue never resolved?

EDIT: Found it in this post:
http://irrlicht.sourceforge.net/phpBB2/ ... php?t=5813
Murphy
Posts: 290
Joined: Mon Dec 13, 2004 12:06 am
Location: United States
Contact:

Post by Murphy »

On my second post in this topic, I gave the URLs of three other topics on that subject. Your best bet is to read these and then reply to one of them if you have problems.
Guest

Post by Guest »

MikeR wrote:Don't quote me, but it looks like it can't find CMainMenu.h and CDemo.h
I haven't tried to compile that one yet.
k.... :D
Post Reply