ENIGMA Forums

Outsourcing saves money => Issues Help Desk => Topic started by: typosoftdev on December 13, 2017, 12:25:19 AM

Title: Please help immediately with this error
Post by: typosoftdev on December 13, 2017, 12:25:19 AM
When compiling any example or game I get :
undefined reference to `enigma::image_load(std::string, unsigned int*, unsigned int*, unsigned int*, unsigned int*, int*, bool)'
collect2.exe: error: ld returned 1 exit status
It does this on everything I try to compile, please help
Title: Re: Please help immediately with this error
Post by: techdev1976 on December 13, 2017, 01:14:51 AM
;) Sorry I had the make a new account I meant when clicking on the run button to run the game, when saving the executable works fine
Title: Re: Please help immediately with this error
Post by: hpg678 on December 14, 2017, 10:45:11 AM
Quote from: typosoftdev on December 13, 2017, 12:25:19 AM
When compiling any example or game I get :
undefined reference to `enigma::image_load(std::string, unsigned int*, unsigned int*, unsigned int*, unsigned int*, int*, bool)'
collect2.exe: error: ld returned 1 exit status
It does this on everything I try to compile, please help


HI. This error could be stating that
Title: Re: Please help immediately with this error
Post by: Goombert on December 24, 2017, 11:49:30 PM
That's ok, don't worry about making or having made a second account. If you want back into the original, Josh may be able to assist with that.

This is a very strange issue and is what's called a linker error. image_load is an internal function in our engine which may call image_load_bmp or delegate to an external library to load various image formats. This function gets called by sprite_add and background_add which then passes the data (32bit BGRA uncompressed texture) to the GPU in the graphics system. The only way this could occur is if you have an old copy of ENIGMA or you changed the source code in some way. Where did you obtain ENIGMA from?

Also, can you please provide the full/more detailed log from the compile output window?