Sorry guys. The sword/examples/classes folder assumes you have some
version of sword installed. regardless, the only file the test program
needs is sword/include/sysdata.h. Just compile it however you'd like
<> to "" in the include statement if necessary.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Post by Troy A. GriffittsHi Stefan,
(the sword/examples/classes folder has an appropriate Makefile to build against sword if you want to drop it in that folder and then type: make <your filename>.cpp)
#include<sysdata.h>
#include<stdio.h>
int main(int argc, char **argv) {
printf("%ld\n", sizeof(__u64));
return 0;
}
Post by Stefan HusmannHello,
I have problems compiling sword in revision 3249 under Arch Linux 64 bit both using clang++ or g++.
Switching off xz (configure option --without-xz) solves the issue.
I attach the two compile logs, hope it is okay to do so.
Best Regards
Stefan
_______________________________________________
sword-devel mailing list: sword-devel at crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page
_______________________________________________
sword-devel mailing list: sword-devel at crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page
Hello,
[haawda at frege ~]$ LANG=C g++ how_big_is_u64.cpp -o how_big_is_u64.o
how_big_is_u64.cpp:1:20: fatal error: sysdata.h: No such file or directory
#include<sysdata.h>
^
compilation terminated.
[haawda at frege ~]$ LANG=C clang++ how_big_is_u64.cpp -o how_big_is_u64.o
how_big_is_u64.cpp:1:9: fatal error: 'sysdata.h' file not found
#include<sysdata.h>
^
1 error generated.
Best Regards
Stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQEcBAEBAgAGBQJT+gc3AAoJEFB4KGhvDRgLPMUH/isUBHN2bjcpcQXRR0nvPcYw
vitWjpljsYIHpDZXrHBKxRGqFm7SiE8uuFsTjf7KazKi9zSESt50dgN1pUw/dUap
os5XZoSF48keFd8dwN7Qu6k7r7R2qaX9/qfVB4hcVJDvyTEghhodFbN2bHGXH1AL
WSsdYteR31/lLD7wdQHcCD6uUQMGxXR+ArBH0/89BwrRcCAYF8o3jBaRhlUcOBIZ
NOr/wshvlAdEEG2Q1x2FiyWjdoMIDedK9x2NTTw5yu6tCtCwxLPf1ixqzZM/tv8T
2m+dmOxAMf70Ygyea3pwU7xmeExN7izQ0YcZBOBqL/6vRjjZAAbM9xblXKTh7CY=
=SbbG
-----END PGP SIGNATURE-----
_______________________________________________
sword-devel mailing list: sword-devel at crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page