Harmless wrote:
OK, I'm much further along, but just as lost if not moreso than before. After running through the jansson walkthrough again, and talking to a developer friend who showed me where the the jansson include files go (the mingw/include directory), I can get to 68% before it errors out.
Sorry for incoming spam!
C:\tome2>mingw32-make
Linking C executable tome.exe
CMakeFiles\tome.dir/objects.a(squeltch.obj):squeltch.c:(.text+0x37): undefined r
eference to `json_delete'
CMakeFiles\tome.dir/objects.a(squeltch.obj):squeltch.c:(.text+0x17ba): undefined
reference to `json_null'
CMakeFiles\tome.dir/objects.a(squeltch.obj):squeltch.c:(.text+0x17c4): undefined
reference to `json_object'
CMakeFiles\tome.dir/objects.a(squeltch.obj):squeltch.c:(.text+0x17dc): undefined
reference to `json_string'
CMakeFiles\tome.dir/objects.a(squeltch.obj):squeltch.c:(.text+0x17f3): undefined
reference to `json_object_set_new'
CMakeFiles\tome.dir/objects.a(squeltch.obj):squeltch.c:(.text+0x1816): undefined
reference to `json_array'
CMakeFiles\tome.dir/objects.a(squeltch.obj):squeltch.c:(.text+0x184f): undefined
reference to `json_array_append_new'
followed by another 50 lines or so of roughly the same thing, undefined references to jason_foo.
Any suggestions? Thanks again!
The
include files are being found properly. It's the
library files that are not being found. I should think they would have a ".a" or ".so" suffix on mingw.
Which exact version of the code are you compiling? A git hash would be ideal, you can get it by running
Code:
git rev-parse HEAD
(There was a recent fix for jansson linking and I'd like to confirm whether you have that or not.)
Btw, in this forum you can use "code" tags to wrap compiler/console output.