
Problem with compiling by DEV C++
Problem with compiling by DEV C++
Hi, i'm new, i spent last time on creating games in flash, but now i've discovered this site and start using this tutorials, but i have a problem with the first one
. I'm usin DEV C++ 4.9.9.2 And follow the tutorial from main page about using irrlicht and this compiler, i follow all steps, but i always see this problem. Can you tell me what is wrong? I have no more ideas. Thank you very much for help, i know that my english is horrible.


do the same like i told this guy
post your linker flags... http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=23701
Heh, it i easier to say than do this, if i good understand i should paste irrlicht.h into my project folder and change directory, i try this but effect is the same, can you tell me stp by step which part of irrlicht i should paste and where? your solution gave no result.
I also pasted the file makefile.win into project folder, but it didn't solve the problem.
I also pasted the file makefile.win into project folder, but it didn't solve the problem.
I will write how to start project from the beginning.
First create new project - console application. Save it (it's not important where). In main menu select "project" and then "project options". Select card "Directories". In "include directories" add path to Include folder in irrlicht. Now select page "Parameters"and add library to linker (just press button). This library is "lib/Win32-gcc/libIrrlicht.a" in irrlicht directory.
add lines:
Now you can write any program you want
If you don't want to write "irr::" you can write "using namespace irr;" under include 
To run program you have to copy dll file to system dir, or to you exe file.
btw: I really don't like Dev C++ auto formatting code, also intellisense isn't work for me. I suggest you to download MS Visual C++ 2005 (it's free).
It is work with 4.9.9.2
First create new project - console application. Save it (it's not important where). In main menu select "project" and then "project options". Select card "Directories". In "include directories" add path to Include folder in irrlicht. Now select page "Parameters"and add library to linker (just press button). This library is "lib/Win32-gcc/libIrrlicht.a" in irrlicht directory.
add lines:
Code: Select all
#include <irrlicht.h>
#pragma comment(lib, "Irrlicht.lib")
Code: Select all
#include <irrlicht.h>
#pragma comment(lib, "Irrlicht.lib")
int main(int argc, char *argv[])
{
irr::IrrlichtDevice *device
= irr::createDevice( irr::video::EDT_SOFTWARE, irr::core::dimension2d<irr::s32>(640, 480), 16,
false, false, false, 0);
while(device->run())
{
}
return 0;
}
To run program you have to copy dll file to system dir, or to you exe file.
btw: I really don't like Dev C++ auto formatting code, also intellisense isn't work for me. I suggest you to download MS Visual C++ 2005 (it's free).
It is work with 4.9.9.2
This is my makefile.win
Method from preview post doesn't work, there is the same problem, i will try MS visual 2005 free edition, it should be better for me as it is easier in use for beginner. Thanks for help.
Code: Select all
# Project: Projekt próba
# Makefile created by Dev-C++ 4.9.9.2
CPP = g++.exe
CC = gcc.exe
WINDRES = windres.exe
RES =
OBJ = projekt2/Untitled1.o $(RES)
LINKOBJ = projekt2/Untitled1.o $(RES)
LIBS = -L"d:/Dev-Cpp/lib" -L"C:/Irrlicht/include" C:/Irrlicht/lib/Win32-gcc/libIrrlicht.a
INCS = -I"d:/Dev-Cpp/include" -I"C:/Irrlicht/include"
CXXINCS = -I"d:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"d:/Dev-Cpp/include/c++/3.4.2/backward" -I"d:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"d:/Dev-Cpp/include/c++/3.4.2" -I"d:/Dev-Cpp/include" -I"C:/Irrlicht/include"
BIN = "Projekt próba.exe"
CXXFLAGS = $(CXXINCS)
CFLAGS = $(INCS)
RM = rm -f
.PHONY: all all-before all-after clean clean-custom
all: all-before "Projekt próba.exe" all-after
clean: clean-custom
${RM} $(OBJ) $(BIN)
$(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o "Projekt próba.exe" $(LIBS)
projekt2/Untitled1.o: projekt2/Untitled1.cpp
$(CPP) -c projekt2/Untitled1.cpp -o projekt2/Untitled1.o $(CXXFLAGS)
Method from preview post doesn't work, there is the same problem, i will try MS visual 2005 free edition, it should be better for me as it is easier in use for beginner. Thanks for help.
What you might want to do is download the irrlicht devpackage. It's for version 1.3, but you can replace the link file with the new version. The microsoft compiler is huge and a pain to set up.
http://sourceforge.net/project/showfile ... _id=497002
http://sourceforge.net/project/showfile ... _id=497002