Difficulty compiling asmjit

43 views
Skip to first unread message

Zii

unread,
Sep 15, 2011, 11:10:09 AM9/15/11
to asmjit-dev
Hi =)

I've been trying to compile asmjit, but it's not working.

First, I'm using "g++ -w -o asmjit.o src/*" (all the source files are
in ./src), since there are hundreds of warnings.

The first errors I got were stuff-not-defined errors, so I added
#include "DefsX86X64.h"
to CompilerX86X64.h and
#include "Logger.h"
to AssemblerX86X64.h, which fixed those.

But now it's saying
src/CompilerX86X64.h:50:35: error: 'VARIABLE_TYPE_GPD' is not a type
src/CompilerX86X64.h:50:53: error: expected constructor, destructor,
or type conversion before ';' token
line 50 being: ASMJIT_DECLARE_TYPE_AS_ID(int8_t, VARIABLE_TYPE_GPD);

Any help?

Petr Kobalíček

unread,
Sep 15, 2011, 12:17:14 PM9/15/11
to asmji...@googlegroups.com
Hi,

I'm sure whether you are building AsmJit using good way.

Using

"g++ -w -o asmjit.o src/*"

isn't good, maybe replacing it to

"g++ -w -o asmjit.o src/*.cpp"

but this is not clear for the future, because support for other
architectures can be added and I'm sure that it will be broken after
that.

So why not to use cmake or to specify which files to build manually?

Best regards
Petr Kobalicek

Reply all
Reply to author
Forward
0 new messages