DirectX9c in DevC -in 10 EZ steps

A forum to store posts deemed exceptionally wise and useful
Guest

DirectX9c in DevC -in 10 EZ steps

Post by Guest »

(could a moderator del the first post? thanks)

First thanks to Stoffe and all the others for their help on this.

I've had the same troubles as everyone else getting DX to work in DevC since v5.

Second I'm in no way an expert.I'm just hacking at this so there could be a bug or 2, but it has worked in example 4.
Hopefully an experienced user will spot any errors.

here's how I did it on XPsp2 DX9c with DevC 4.9.9.0:

1.
get the DX9c devpack from :
http://www.g-productions.net

2.
unpack the source and open the DevC proj.
Ignore the "missing glxext.h" error and save the proj to get rid of it.
Go to "File> Close All" to close the open windows

3.
Open "Project>Options>Parameters"

I had trouble linking the jpeg and zip libraries so I changed the linking parameters:

I deleted:

-ljpeg and -lz

then used the "Add Library" file browser to add:

../../lib/DevCpp/libjpeg.a
../../lib/DevCpp/libz.a

from the irrlicht/lib/DevCpp folder(not the irrlicht/source folder)

then I added the 2 DX libraries from the Dev-Cpp program folder:

../../../Dev-Cpp/lib/libd3dx9.a
../../../Dev-Cpp/lib/libd3dx8.a


(If you want you should be able to copy/paste this over it, assuming your irrlicht source folder and DevC paths are like mine - irrlicht/source/irrlicht)

Code: Select all

--no-export-all-symbols --add-stdcall-alias -lgdi32 -lglu32 -lopengl32 
../../lib/DevCpp/libjpeg.a
../../lib/DevCpp/libz.a
../../../Dev-Cpp/lib/libd3dx9.a
../../../Dev-Cpp/lib/libd3dx8.a

4.
I'm not %100 sure on this , but from reading the files:
Irr impl/IrrCompileConfig.h
and
Video impl/DirectX9/CVideoDirectX9.h/.cpp

I think I need these directives:

-DWIN32=1
-D_WIN32=1

(or -DWIN32 -D_WIN32 )

which I added to BOTH the Compiler and C++ Compiler commands text boxes under:

-DIRRLICHT_EXPORTS=1

so in both boxes,it should look like:

Code: Select all

-DIRRLICHT_EXPORTS=1
-DWIN32=1
-D_WIN32=1
I'll add pictures later if needed.
5.
In the "Directories\Library" tab remove the old ones.
then use the file browser to add:(mine is on E: )
NOTICE! due to errors this is not in the source folder

Code: Select all

E:\irrlicht\lib\DevCpp
6.
In the "Directories\Include Directories" tab, remove the old ones.
then add:

Code: Select all

E:\irrlicht\source\Irrlicht\include
E:\irrlicht\source\Irrlicht\jpeglib
E:\irrlicht\source\Irrlicht\zlib
7.
Since the -DWIN32=1 doesn't seem to work,
find the "IrrCompileConfig.h" header file in the "Irr impl" folder and find:

Code: Select all

#if (defined(_WIN32) || defined(_XBOX)) && !defined(__GNUC__)

#define _IRR_COMPILE_WITH_DIRECTX_8_
#define _IRR_COMPILE_WITH_DIRECTX_9_

#endif
comment out the #if #endif

like this:

Code: Select all

//#if (defined(_WIN32) || defined(_XBOX)) && !defined(__GNUC__)

#define _IRR_COMPILE_WITH_DIRECTX_8_
#define _IRR_COMPILE_WITH_DIRECTX_9_

//#endif

I actually edited the whole file like this:

Code: Select all

//IrrCompileconfig.h
// Copyright (C) 2002-2004 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in Irrlicht.h

#ifndef __IRR_COMPILE_CONFIG_H_INCLUDED__
#define __IRR_COMPILE_CONFIG_H_INCLUDED__

#define _IRR_COMPILE_WITH_DIRECTX_8_
#define _IRR_COMPILE_WITH_DIRECTX_9_
#define _IRR_COMPILE_WITH_OPENGL_
#define _IRR_COMPILE_WITH_ZLIB_
#define _IRR_COMPILE_WITH_LIBJPEG_

#endif
I'll probably comment out DX8 and OpenGL as well.

8.
Execute>Rebuild All
the size of the new Irrlicht.dll file should be 1.32 mb

9.
Now all you need is to get the 3 files

Irrlicht.dll
from the source/irrlicht folder
and

d3dx8.dll
d3dx9.dll

from your Dev-Cpp\DLL folder and move them either to your SYSTEM32 folder or the current project folder(where the exe is).

(there's also the libIrrlicht.a file for whatever)

If I got this right it should work for you.
hope it helps.

It great to finally be able to use irrlicht


BlackJack
Guest

Post by Guest »

PS
I'm not sure whether you need to compile with BOTH DX 8 and 9
or just one or the other.
Does anyone know?
I'd also appreciate info on the _WIN32 directive,like if it's really necessary for XP.
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

Hi BlackJack,
I am compiling Irrlicht.dll since Irrlicht 0.6 version on several DevC++ versions. Proces I always did was simple as this:

1. Download and apply directX9 devpack (Tools > Check for Updates/Packages...)

2. Unzip Irrlicht sources

3. Open Irrlicht.dev file from Irrlicht sources directory

4. Open Project Options (Alt+P)

5. In Parameters add to Compiler and C++ compiler:
-D_IRR_COMPILE_WITH_DIRECTX_8_=1
-D_IRR_COMPILE_WITH_DIRECTX_9_=1

6. In Parameters add to linker:
-ld3dx8d
-ld3dx9d

7. In Directories > Library Directories change
C:\Development\Irrlicht\gppjpeglib to jpeglib
C:\Development\Irrlicht\gppzlib to zlib

8. In Directories > Include Directories change
C:\Development\Irrlicht\Irrlicht\include to include

9. Rebuild all (Ctrl+F11)

d3dx8d.dll and d3dx9d.dll have to be included in your path when using new Irrlicht.dll.

P.S.: doesn't we know us from Piratescrossroads forum?


Oh ...I forgot: I compile under WinXP and there seems to be some problems on Win2000 ...look here: http://irrlicht.sourceforge.net/phpBB2/ ... php?t=4415
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

Nice Arras! very clear but I'm getting the following error and my compilation stops:

CVideoDirectX9.cpp:57: error: `FLT_MAX' undeclared (first use this function)

CVideoDirectX9.cpp:57: error: (Each undeclared identifier is reported only once


any ideas?

oh yes, and a final question, I downloaded several DX packages so now I got libd3dx8.a-libd3dx8.a and libd3dx9.a-libd3dx9d.ain my Lib folder. which should I use and why?
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

afecelis>>
I don't realy know but to me it looks like DirectX SDK was not properly instaled.
Wersion I use is: DirectX 9 SDK. Original by Gorobei and Zero Valintine. Updated by Grembo (grembo@swiftdsl.com.au). You can wiev and apply Dev pack using Dev-C++Package Manager Tols>Package Manager

libd3dx8d.a and libd3dx9d.a are the ones.
Guest

Post by Guest »

Hi Arras, good to see you again.
I see your into a space game now. I'm still looking for the right engine.
I'll try your way, but following the earlier posts I couldn't get it to work.
(I wish you had wrote this earlier)
I believe I did change the paths like you say but got errors with the zip and jpeg libs until I changed it my way.
There still seemed to be people having problems with DX9,so I thought it would be nice to have a fool-proof way to do it.
This is the only way that worked for me.(I tried it about 10+ times with different approaches)

I guess people should try your method first then if it doesn't work they could try mine.
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

Nice to see old seadog again :P

Well I started it in order to learn Irrlicht and C++ a little bit, since it looked like easier way to go at firsth. I don't want to grow it too big and want to get back to sailingship game later.

I don't know which wersion of Irrlicht you were trying to compile but when I was trying v.0.7.1 I got also problems with zip and jpeg libraries. Here is simple solution:
http://irrlicht.sourceforge.net/phpBB2/ ... php?t=4318
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

thnx for replying Arras!

I had already downloaded all of them (9.0,9.0b and 9.0c). Which version should I use o fthe devpack? I also installed all of them. Should I only install one and uninstall the others? if so, which one?

sorry for my noob q's, but it's my first experience with Devc++

thnx!
Guest

Post by Guest »

Ahhh. that explains a lot. but I'm using 7.0
anyhow, I'm just killing time till the next ver (for .net).
I think I just might be able to use this with C#.
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

afecelis >> version I am using is 9.0 and just to be sure I would uninstall all diferent versions and than apply one only.

BlackJack >> I newer regreated that I started to learn C++ ...it's great language and Irrlicht is build on it, so it's for sure good choice if you want to use it.

What about other engines you were triing untill now, which one you like? I was downloading Ogre which looks good and it free but was not triing it. Also it's pure 3D graphical engine, no sound/collision suport.
Guest

Post by Guest »

I've been mostly using the 3Impact(c) engine.
It's a nice ODE physics engine but lacks things I need that Irrlicht has. I might still try to do something in it.

TV was good, but IMO the li$c is steep and seeing the logo got old, plus a few other things, otherwise I'd say it's great.

Also been looking at Axiom, (uses Ogre) but hard to learn without docs and has a lot of dependencies,slow development,seems a bit of a pain right now,maybe later.

I want to see if I can use Irrlicht now.
Pink Floyd
Posts: 32
Joined: Fri Jan 21, 2005 9:32 pm
Location: Genoa (Italy)

Post by Pink Floyd »

i replaced the lib files and followed all the steps that arras explained, but I got 10 compilation errors

I think it doesn't find sqrt and some macros like GRAD_PI


g++.exe -c CCameraMayaSceneNode.cpp -o CCameraMayaSceneNode.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CCameraSceneNode.cpp -o CCameraSceneNode.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CColorConverter.cpp -o CColorConverter.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CDirectX8Texture.cpp -o CDirectX8Texture.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CFileList.cpp -o CFileList.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CFileSystem.cpp -o CFileSystem.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CFPSCounter.cpp -o CFPSCounter.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CGUIButton.cpp -o CGUIButton.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CGUIEnvironment.cpp -o CGUIEnvironment.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CGUIFileOpenDialog.cpp -o CGUIFileOpenDialog.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CGUIFont.cpp -o CGUIFont.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CGUIImage.cpp -o CGUIImage.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CGUIListBox.cpp -o CGUIListBox.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CGUIMeshViewer.cpp -o CGUIMeshViewer.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CGUIScrollBar.cpp -o CGUIScrollBar.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CGUISkin.cpp -o CGUISkin.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CGUIStaticText.cpp -o CGUIStaticText.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CGUIWindow.cpp -o CGUIWindow.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CIrrDeviceWin32.cpp -o CIrrDeviceWin32.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CLightSceneNode.cpp -o CLightSceneNode.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CLimitReadFile.cpp -o CLimitReadFile.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CMemoryReadFile.cpp -o CMemoryReadFile.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CMeshSceneNode.cpp -o CMeshSceneNode.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c COctTreeSceneNode.cpp -o COctTreeSceneNode.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c COpenGLTexture.cpp -o COpenGLTexture.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CQ3LevelMesh.cpp -o CQ3LevelMesh.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CReadFile.cpp -o CReadFile.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CSceneManager.cpp -o CSceneManager.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CSceneNodeAnimatorFlyCircle.cpp -o CSceneNodeAnimatorFlyCircle.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CSceneNodeAnimatorRotation.cpp -o CSceneNodeAnimatorRotation.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CSoftwareTexture.cpp -o CSoftwareTexture.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CStaticMeshOBJ.cpp -o CStaticMeshOBJ.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CTestSceneNode.cpp -o CTestSceneNode.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

g++.exe -c CTRFlat.cpp -o CTRFlat.o -I"C:/Programm/Dev-C++/include/c++/3.3.1" -I"C:/Programm/Dev-C++/include/c++/3.3.1/mingw32" -I"C:/Programm/Dev-C++/include/c++/3.3.1/backward" -I"C:/Programm/Dev-C++/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Programm/Dev-C++/include" -I"C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1 -fexpensive-optimizations -O3

In file included from S2DVertex.h:8,
from IK3DTriangleRenderer.h:10,
from CTRTextureGouraud.h:8,
from CTRFlat.cpp:5:
C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include/vector2d.h: In member function `irr::f64 irr::core::vector2d<T>::getDistanceFrom(const irr::core::vector2d<T>&) const':
C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include/vector2d.h:71: error: there are no arguments to `sqrt' that depend on a template parameter, so a declaration of `sqrt' must be available
C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include/vector2d.h:71: error: (if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include/vector2d.h: In member function `void irr::core::vector2d<T>::rotateBy(irr::f64, const irr::core::vector2d<T>&)':
C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include/vector2d.h:77: error: `GRAD_PI2' undeclared (first use this function)
C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include/vector2d.h:77: error: (Each undeclared identifier is reported only once for each function it appears in.)
C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include/vector2d.h:78: error: there are no arguments to `cos' that depend on a template parameter, so a declaration of `cos' must be available
C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include/vector2d.h:79: error: there are no arguments to `sin' that depend on a template parameter, so a declaration of `sin' must be available

C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include/vector2d.h: In member function `irr::f64 irr::core::vector2d<T>::getAngle() const':
C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include/vector2d.h:113: error: there are no arguments to `sqrt' that depend on a template parameter, so a declaration of `sqrt' must be available

C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include/vector2d.h:113: error: `GRAD_PI' undeclared (first use this function)
C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include/vector2d.h: In member function `irr::f64 irr::core::vector2d<T>::getAngleWith(const irr::core::vector2d<T>&) const':
C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include/vector2d.h:142: error: there are no arguments to `sqrt' that depend on a template parameter, so a declaration of `sqrt' must be available

C:/Documents and Settings/Pink Floyd/Desktop/Programmazione/irrlicht-0.7/source/source/Irrlicht/include/vector2d.h:142: error: `GRAD_PI' undeclared (first use this function)

make.exe: *** [CTRFlat.o] Error 1

Esecuzione terminata
Pink Floyd
Posts: 32
Joined: Fri Jan 21, 2005 9:32 pm
Location: Genoa (Italy)

Post by Pink Floyd »

I eliminated the sqrt and sin errors including <math.h>

but the GRAD_PI and GRAD_PI2 errors remain

where are that macros declared?
Pink Floyd
Posts: 32
Joined: Fri Jan 21, 2005 9:32 pm
Location: Genoa (Italy)

Post by Pink Floyd »

I found that they are declared in irrmath.h, and simply included in vector2d.h

now Dev-Cpp compiles all the source, but when linking to the dll I got a lot of undefined reference messages...

is that a problem of Dev-Cpp dll compiling system? Because someone said that DevCpp has some trobules compiling dlls?


Please help me :D

these are the undefined references:

CFileSystem.o(.text+0x2a2):CFileSystem.cpp: undefined reference to `irr::io::CTextReader::CTextReader(irr::io::IReadFile*)'

CFileSystem.o(.text+0x2d4):CFileSystem.cpp: undefined reference to `irr::io::CXMLReader::CXMLReader(irr::io::CTextReader*)'
CFileSystem.o(.text+0x443):CFileSystem.cpp: undefined reference to `irr::io::CXMLWriter::CXMLWriter(irr::io::IWriteFile*)'
CFileSystem.o(.text+0x72):CFileSystem.cpp: undefined reference to `irr::io::createWriteFile(char const*, bool)'
CGUIEnvironment.o(.text+0xd22):CGUIEnvironment.cpp: undefined reference to `irr::gui::CGUICheckBox::CGUICheckBox(bool, irr::gui::IGUIEnvironment*, irr::gui::IGUIElement*, int, irr::core::rect<int>)'
CGUIEnvironment.o(.text+0x12d3):CGUIEnvironment.cpp: undefined reference to `irr::gui::CGUIEditBox::CGUIEditBox(wchar_t const*, bool, irr::gui::IGUIEnvironment*, irr::gui::IGUIElement*, int, irr::core::rect<int> const&, irr::IOSOperator*)'
CGUIEnvironment.o(.text+0x13ee):CGUIEnvironment.cpp: undefined reference to `irr::gui::CGUITabControl::CGUITabControl(irr::gui::IGUIEnvironment*, irr::gui::IGUIElement*, irr::core::rect<int> const&, bool, bool, int)'
CGUIEnvironment.o(.text+0x14ff):CGUIEnvironment.cpp: undefined reference to `irr::gui::CGUITab::CGUITab(int, irr::gui::IGUIEnvironment*, irr::gui::IGUIElement*, irr::core::rect<int> const&, int)'
CGUIEnvironment.o(.text+0x163c):CGUIEnvironment.cpp: undefined reference to `irr::gui::CGUIContextMenu::CGUIContextMenu(irr::gui::IGUIEnvironment*, irr::gui::IGUIElement*, int, irr::core::rect<int>, bool)'
CGUIEnvironment.o(.text+0x17b9):CGUIEnvironment.cpp: undefined reference to `irr::gui::CGUIMenu::CGUIMenu(irr::gui::IGUIEnvironment*, irr::gui::IGUIElement*, int, irr::core::rect<int>)'
CGUIEnvironment.o(.text+0x18f2):CGUIEnvironment.cpp: undefined reference to `irr::gui::CGUIToolBar::CGUIToolBar(irr::gui::IGUIEnvironment*, irr::gui::IGUIElement*, int, irr::core::rect<int>)'
CGUIEnvironment.o(.text+0x1a23):CGUIEnvironment.cpp: undefined reference to `irr::gui::CGUIComboBox::CGUIComboBox(irr::gui::IGUIEnvironment*, irr::gui::IGUIElement*, int, irr::core::rect<int>)'
CIrrDeviceWin32.o(.text+0x41f):CIrrDeviceWin32.cpp: undefined reference to `irr::video::createDirectX9Driver(irr::core::dimension2d<int> const&, HWND__*, unsigned int, bool, bool, irr::io::IFileSystem*, bool, bool)'
CIrrDeviceWin32.o(.text+0x2ad9):CIrrDeviceWin32.cpp: undefined reference to `irr::COSOperator::COSOperator(char const*)'
CIrrDeviceWin32.o(.text+0x3299):CIrrDeviceWin32.cpp: undefined reference to `irr::COSOperator::COSOperator(char const*)'
CSceneManager.o(.text+0xd4):CSceneManager.cpp: undefined reference to `irr::scene::CTextSceneNode::CTextSceneNode(irr::scene::ISceneNode*, irr::scene::ISceneManager*, int, irr::gui::IGUIFont*, irr::scene::ISceneCollisionManager*, irr::core::vector3d<float> const&, wchar_t const*, irr::video::SColor)'
CSceneManager.o(.text+0x125f):CSceneManager.cpp: undefined reference to `irr::scene::CTerrainSceneNode::CTerrainSceneNode(irr::scene::ISceneNode*, irr::scene::ISceneManager*, int, irr::core::vector3d<float> const&, irr::core::vector3d<float> const&, irr::core::vector3d<float> const&)'
CSceneManager.o(.text+0x12aa):CSceneManager.cpp: undefined reference to `irr::scene::CTerrainSceneNode::load(irr::video::IImage*, irr::video::IImage*, irr::video::ITexture*, irr::core::dimension2d<float> const&, irr::core::dimension2d<int> const&, float)'
CSceneManager.o(.text+0x13b2):CSceneManager.cpp: undefined reference to `irr::scene::CEmptySceneNode::CEmptySceneNode(irr::scene::ISceneNode*, irr::scene::ISceneManager*, int)'
CSceneManager.o(.text+0x1c38):CSceneManager.cpp: undefined reference to `irr::scene::CSceneNodeAnimatorFollowSpline::CSceneNodeAnimatorFollowSpline(unsigned int, irr::core::array<irr::core::vector3d<float> > const&, float, float)'
CSceneManager.o(.text+0x4ccf):CSceneManager.cpp: undefined reference to `irr::scene::CXMeshFileLoader::CXMeshFileLoader(irr::scene::IMeshManipulator*, irr::video::IVideoDriver*)'
CSceneManager.o(.text+0x59bf):CSceneManager.cpp: undefined reference to `irr::scene::CXMeshFileLoader::CXMeshFileLoader(irr::scene::IMeshManipulator*, irr::video::IVideoDriver*)'
CSoftwareTexture.o(.text+0x10a):CSoftwareTexture.cpp: undefined reference to `irr::video::CImage::CImage(irr::video::ECOLOR_FORMAT, irr::video::IImage*)'
CSoftwareTexture.o(.text+0x1d2):CSoftwareTexture.cpp: undefined reference to `irr::video::CImage::CImage(irr::video::ECOLOR_FORMAT, irr::core::dimension2d<int> const&)'
CSoftwareTexture.o(.text+0x1f1):CSoftwareTexture.cpp: undefined reference to `irr::video::CImage::copyToScaling(irr::video::CImage*)'
CSoftwareTexture.o(.text+0x31a):CSoftwareTexture.cpp: undefined reference to `irr::video::CImage::CImage(irr::video::ECOLOR_FORMAT, irr::video::IImage*)'
CSoftwareTexture.o(.text+0x3e2):CSoftwareTexture.cpp: undefined reference to `irr::video::CImage::CImage(irr::video::ECOLOR_FORMAT, irr::core::dimension2d<int> const&)'
CSoftwareTexture.o(.text+0x401):CSoftwareTexture.cpp: undefined reference to `irr::video::CImage::copyToScaling(irr::video::CImage*)'
CSoftwareTexture.o(.text+0x725):CSoftwareTexture.cpp: undefined reference to `irr::video::CImage::copyToScaling(irr::video::CImage*)'
CVideoDirectX8.o(.text+0x5934):CVideoDirectX8.cpp: undefined reference to `irr::video::CD3D8ShaderMaterialRenderer::CD3D8ShaderMaterialRenderer(IDirect3DDevice8*, irr::video::IVideoDriver*, int&, char const*, char const*, irr::video::IShaderConstantSetCallBack*, irr::video::IMaterialRenderer*)'
CVideoNull.o(.text+0xd41):CVideoNull.cpp: undefined reference to `irr::video::CImage::CImage(irr::video::ECOLOR_FORMAT, irr::core::dimension2d<int> const&, void*)'

CVideoNull.o(.text+0x247e):CVideoNull.cpp: undefined reference to `irr::video::createImageLoaderBmp()'
CVideoNull.o(.text+0x2553):CVideoNull.cpp: undefined reference to `irr::video::createImageLoaderJPG()'

CVideoNull.o(.text+0x262e):CVideoNull.cpp: undefined reference to `irr::video::createImageLoaderTGA()'
CVideoNull.o(.text+0x2709):CVideoNull.cpp: undefined reference to `irr::video::createImageLoaderPSD()'

CVideoNull.o(.text+0x27e4):CVideoNull.cpp: undefined reference to `irr::video::createImageLoaderPCX()'
CVideoNull.o(.text+0x2d7e):CVideoNull.cpp: undefined reference to `irr::video::createImageLoaderBmp()'

CVideoNull.o(.text+0x2e53):CVideoNull.cpp: undefined reference to `irr::video::createImageLoaderJPG()'
CVideoNull.o(.text+0x2f2e):CVideoNull.cpp: undefined reference to `irr::video::createImageLoaderTGA()'

CVideoNull.o(.text+0x3009):CVideoNull.cpp: undefined reference to `irr::video::createImageLoaderPSD()'
CVideoNull.o(.text+0x30e4):CVideoNull.cpp: undefined reference to `irr::video::createImageLoaderPCX()'

CVideoNull.o(.text+0x418c):CVideoNull.cpp: undefined reference to `irr::video::CImage::CImage(irr::video::ECOLOR_FORMAT, irr::core::dimension2d<int> const&)'
CVideoOpenGL.o(.text+0x3a7a):CVideoOpenGL.cpp: undefined reference to `irr::video::COpenGLShaderMaterialRenderer::COpenGLShaderMaterialRenderer(irr::video::CVideoOpenGL*, int&, char const*, char const*, irr::video::IShaderConstantSetCallBack*, irr::video::IMaterialRenderer*)'
CVideoSoftware.o(.text+0x591):CVideoSoftware.cpp: undefined reference to `irr::video::CImage::fill(short)'
CVideoSoftware.o(.text+0x697):CVideoSoftware.cpp: undefined reference to `irr::video::CImage::drawLine(irr::core::position2d<int> const&, irr::core::position2d<int> const&, short)'
CVideoSoftware.o(.text+0x757):CVideoSoftware.cpp: undefined reference to `irr::video::CImage::copyToWithAlpha(irr::video::CImage*, irr::core::position2d<int> const&, irr::core::rect<int> const&, short, irr::core::rect<int> const*)'

CVideoSoftware.o(.text+0x793):CVideoSoftware.cpp: undefined reference to `irr::video::CImage::copyTo(irr::video::CImage*, irr::core::position2d<int> const&, irr::core::rect<int> const&, irr::core::rect<int> const*)'
CVideoSoftware.o(.text+0x12a4):CVideoSoftware.cpp: undefined reference to `irr::video::CImage::CImage(irr::video::ECOLOR_FORMAT, irr::core::dimension2d<int> const&)'

CVideoSoftware.o(.text+0x12cb):CVideoSoftware.cpp: undefined reference to `irr::video::CImage::fill(short)'
CVideoSoftware.o(.text+0x18a4):CVideoSoftware.cpp: undefined reference to `irr::video::CImage::CImage(irr::video::ECOLOR_FORMAT, irr::core::dimension2d<int> const&)'
CVideoSoftware.o(.text+0x18cb):CVideoSoftware.cpp: undefined reference to `irr::video::CImage::fill(short)'
CVideoSoftware.o(.text+0x1ba0):CVideoSoftware.cpp: undefined reference to `irr::video::CImage::drawRectangle(irr::core::rect<int> const&, irr::video::SColor)'
CVideoSoftware.o(.text+0x647):CVideoSoftware.cpp: undefined reference to `irr::video::CImage::copyTo(irr::video::CImage*, irr::core::position2d<int> const&)'

CGeometryCreator.o(.text+0x14de):CGeometryCreator.cpp: undefined reference to `irr::video::CImage::CImage(irr::video::IImage*, irr::core::position2d<int> const&, irr::core::dimension2d<int> const&)'
CIrrDeviceStub.o(.text+0x6a0):CIrrDeviceStub.cpp: undefined reference to `irr::CLogger::setReceiver(irr::IEventReceiver*)'
CIrrDeviceStub.o(.text+0x111c):CIrrDeviceStub.cpp: undefined reference to `irr::CLogger::CLogger(irr::IEventReceiver*)'
CIrrDeviceStub.o(.text+0x158c):CIrrDeviceStub.cpp: undefined reference to `irr::CLogger::CLogger(irr::IEventReceiver*)'


what is strange is that if I search them in the API documentation of Irrlicht I don't find them!

I thought it could be a problem of the static libraries (*.a) but I'me sure I have included the ones from /lib/ directory
Pink Floyd
Posts: 32
Joined: Fri Jan 21, 2005 9:32 pm
Location: Genoa (Italy)

Post by Pink Floyd »

this is the most auto-replied thread of the board... :(

Now it seems to have compiled regularly, and it produced Irrlicht.dll.

But with the new irrlicht.dll (and including the two dx8 and dx9 dlls in the path) directx apps do the same error, and opengl apps work regularly


now I ask if someone has a precompiled Dev-Cpp version with works with Dx
Post Reply