How can i make -lalleg on the linker to work?

  allegro4, c++

Well, i did all i knew to work with allegro in C++ but i keep getting the same problem,
-lalleg not found

D:Program Files (x86)Dev-CppMinGW64x86_64-w64-mingw32binld.exe skipping incompatible D:Program Files (x86)Dev-CppMinGW64lib/liballeg.a when searching for -lalleg
D:Program Files (x86)Dev-CppMinGW64x86_64-w64-mingw32binld.exe skipping incompatible D:/Program Files (x86)/Dev-Cpp/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../liballeg.a when searching for -lalleg
D:Program Files (x86)Dev-CppMinGW64x86_64-w64-mingw32binld.exe cannot find -lalleg
E:ProgramacionC++PracticasAllegroTestingcollect2.exe [Error] ld returned 1 exit status

i tried to make DevC++ to send the -lalleg at compiling but i keep getting that
,if i don’t put the compiler to use -lalleg

i get this

D:UsersJ****nAppDataLocalTempccz9vWbS.o In function `_mangled_main()’:
4 E:ProgramacionC++PracticasAllegroTestingMain.cpp undefined reference to `_install_allegro_version_check’
D:UsersJ****nAppDataLocalTempccz9vWbS.o In function `WinMain’:
7 E:ProgramacionC++PracticasAllegroTestingMain.cpp undefined reference to `_WinMain’
E:ProgramacionC++PracticasAllegroTestingcollect2.exe [Error] ld returned 1 exit status

any of you know of any possible solution
i’m using Allegro 4.2.2 and the last version of DevC++

the code is something basig ,just a test


int main(){
    allegro_init();
    return 0;
}
END_OF_MAIN();

any help is welcome,thank you for the time

Source: Windows Questions C++

LEAVE A COMMENT