Are you actually compiling ArangoDB or a project of your own? In the latter case, you may need to add the .h file from ArangoDB to your own project, or at least add the file's location to the list of include directories. Otherwise the compiler won't find it and complain. The easiest will be to copy the file from ArangoDB into your own project, but that will likely cause further issues, because the .h files in ArangoDB include other files from the ArangoDB source. So providing the file include file locations via the -I compile option may help. It may also be necessary to manually set a few defines that are automatically set via ArangoDB's automake/cmake (2.8/3.0) process when compiling ArangoDB. If you are compiling your own project, these defines may not be set. It may all work without the defines, but the result may not be optimal.
Best regards Jan Am Mittwoch, 10. August 2016 12:00:17 UTC+2 schrieb cai li: > > Hi, I'm inherited Arangodb class in my shared library, when I compile g++ > always says "recompile with -fPIC". you know I don’t know how to modify the > makefile. my question is if i use arangodb3.0 can solve the problem? > > 2016-08-10 9:46 GMT+08:00 <[email protected] <javascript:>>: > >> >> >> 在 2016年8月8日星期一 UTC+8上午10:45:25,[email protected]写道: >>> >>> Hi all, I am working with arangodb in linux, and I want to use some >>> file(*.h *.cpp) from another project. But g++ always says can not find >>> the ".h" file. I try to modified arangodb's "Makefile.files" and generated >>> Makefile again via "configure",but does't work. How can i do? thank you >>> very much. >>> >> >> Hi, If i want use some C++ file form another project in arangodb 3.0 >> in linux what shoud i do and how to do? thanks! >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "ArangoDB" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/arangodb/jvpp77lSA_8/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "ArangoDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
