Witam,
mam problem z instalacją bibliotek do C++. Używam najnowszej wersji Dev-C++.
Zilustruję jak to wszytko zrobiłem. Nie wiem na prawdę co jest źle.
tak wygląda zakładka "Binaria" w Opcje kompilatora >> Katalogi >> Binaria:
http://iv.pl/images/50248309635586795198.png
tak wygląda w Opcje projektu >> parametry:
http://iv.pl/images/92543661588531449961.png
tak wygląda lokalizacja C:\Program Files\Dev-Cpp\MinGW32\lib
http://iv.pl/images/69745904149392028176.png
pliki libfreeglut64.a i libfreeglut64_static.a. dodane tak jak w poradniku:
(http://cpp0x.pl/artykuly/?id=49)
W folderze GL znajduje się jeszcze jeden folder freeglut a w nim plik freeglut64.dll
http://iv.pl/images/70134966526207647480.png
Pomimo tego przy próbie kompilacji kodu takie błędy:
Kompilator: MinGW GCC 4.7.2 32-bit Release
Building Makefile "C:\Documents and Settings\Administrator\Pulpit\Makefile.win"
Wykonywanie make...
mingw32-make.exe -f "C:\Documents and Settings\Administrator\Pulpit\Makefile.win" all
g++.exe lib.o -o lib.exe -L"C:/Program Files/Dev-Cpp/MinGW32/lib" -L"C:/Program Files/Dev-Cpp/MinGW32/mingw32/lib" -static-libstdc++ -static-libgcc -mwindows -lglu32 -lopengl32 -lwinmm -lgdi32 -lGL/freeglut/freeglut64
C:/Program Files/Dev-Cpp/MinGW32/lib/GL/freeglut/freeglut64.dll: file not recognized: File format not recognized
collect2.exe: error: ld returned 1 exit status
C:\Documents and Settings\Administrator\Pulpit\Makefile.win:25: recipe for target 'lib.exe' failed
mingw32-make.exe: *** [lib.exe] Error 1
Compilation failed after 0,09 seconds with errors
Kod:
#include <iostream>
#include <GL/freeglut/freeglut.h>
void napis(){
std::cout << "NApis" << std::endl;
}
int main(){
napis();
}
Bylibyście w stanie mi pomóc?