Undefined reference

26 views
Skip to first unread message

Ryan Gonzalez

unread,
Mar 24, 2014, 7:02:20 PM3/24/14
to asmji...@googlegroups.com
I'm working on an RPN calculator that uses AsmJit. It compiles perfectly fine. When running it, however, I get:

./rpnjit: symbol lookup error: ./rpnjit: undefined symbol: _ZN6asmjit9noOperandE

I'm using C++11, if that means anything. Also, I'm positive I linked with the shared library.

--
Ryan
If anybody ever asks me why I prefer C++ to C, my answer will be simple: "It's becauseslejfp23(@#Q*(E*EIdc-SEGFAULT. Wait, I don't think that was nul-terminated."

Petr Kobalíček

unread,
Mar 24, 2014, 8:35:45 PM3/24/14
to asmjit-dev
Hi Ryan,

Are you using master from github?

Vars are declared by using ASMJIT_VAR decorator, which should contain compiler specific attributes to import/export the symbol so I would look at ASMJIT_VAR definition first.

I just tested on mingw and I don't have such issue (I tried to use noOperand from test-app).

Best regards
Petr Kobalicek

--

---
You received this message because you are subscribed to the Google Groups "asmjit-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to asmjit-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ryan

unread,
Mar 24, 2014, 9:46:10 PM3/24/14
to asmji...@googlegroups.com, Petr Kobalíček
Yes. Actually, I just realized I updating the header files without actually rebuilding AsmJit. I'll try rebuilding tomorrow and post the results.
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

Ryan Gonzalez

unread,
Mar 25, 2014, 1:32:06 PM3/25/14
to asmji...@googlegroups.com, Petr Kobalíček
It still fails. Can you explain a bit more what you mean when you mention the ASMJIT_VAR decorator?
Reply all
Reply to author
Forward
0 new messages