gpakosz / whereami

Locate the current running executable and the current running module/library on the file system 🔎
MIT License
472 stars 64 forks source link

#error unsupported platform #8

Closed ghost closed 7 years ago

ghost commented 7 years ago

I attempted to build a slightly modified version of WhereAmI.c and WhereAmI.h in Eclipse Neon as both C and a C++ project. In both instances of the project it failed to build with the following errors. { Incremental Build of configuration Debug for project WhereAmI make all Building file: ../src/WhereAmI.cpp Invoking: Cygwin C++ Compiler g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/WhereAmI.d" -MT"src/WhereAmI.o" -o "src/WhereAmI.o" "../src/WhereAmI.cpp" ../src/WhereAmI.cpp:661:2: error: #error unsupported platform

error unsupported platform

^ make: *** [src/subdir.mk:20: src/WhereAmI.o] Error 1

Build Finished (took 277ms) } The only modification I made was in WhereAmI.c at line 11. {

if !defined(WHEREAMI_H)

include "WhereAmI.h"

// Changed from to "WhereAmI.h" to reference it locally.

endif

}

gpakosz commented 7 years ago

Can you please try the cygwin branch?

ghost commented 7 years ago

The new Cygwin branch fixed my issue. Sorry for the late response.

gpakosz commented 7 years ago

Alright, I merged the branch. Thanks for the report!