Relative Content

Tag Archive for c++premake

Linking static library fails with Premake5

I’m using Premake5 as the build system for a C++ project, which currently consists of a static library (Core) and a console application (Tests). However, when I attempt to compile Tests including files from Core, the compiler produces the following error:

How can I check for endianness in premake5? C++

I want to define a macro if it is big endian in premake5. I tried using the endian command
but it sets the endianness and I want to check the endianness. How is it possible to change the endian of you machine?
I need it as a macro inside premake5.lua