Re: [Gc] Cannot make cord/tests/{cordtest,de}
Ivan Maidanski <ivmai-JGs/[email protected]> Mon, 27 Oct 2014 09:47:42 +0300
| Newsgroups | gmane.comp.programming.garbage-collection.boehmgc |
|---|---|
| Message-ID | <[email protected]> |
Hi, It depends - both are used: #include <gc/cord.h> // it is assumed gc is installed #include "cord.h" // you should specify -I option but no need to install gc Regards, Ivan Thursday, 23 Oct 2014, 12:15 +03:00 from 张睿 <[email protected]>: Hi, The point is that gc header files are installed into $(prefix)/include/gc. When I build my own programs, the compiler will not find them unless I specify -I$(prefix)/include/gc to it. I would like to ask which of the two is preferred: 1) specify the include path when compiling; 2) write #include<gc/cord.h> instead of #include <cord.h> in the source so that I do not have to specify the include path explicitly. (The compiler does search $(prefix)/include for headers.) “make test” works fine since it is working in the source directory, where everything is present. 发件人: Ivan Maidanski 发送时间: 2014年10月23日, 星期四 16:30 收件人: 张睿 抄送: [email protected] Hi, I fixed second issue - https://github.com/ivmai/bdwgc/commit/b519011261256f8b5b0f3d9868536271c78b53f5 About 1st one, I don't completely understand it. "./configure && make test" compiles and executes cordtest. Regards, IIvan Wed, 8 Oct 2014 16:00:29 +0000 from 张睿 <[email protected]>: >After ./configure and make && make install, I have only a gc.h under $(prefix)/include/, and the following files under $(prefix)/include/gc/ directory: > >cord.h gc_allocator.h gc_config_macros.h gc_gcj.h gc_mark.h gc_tiny_fl.h gc_version.h leak_detector.h >gc.h gc_backptr.h gc_disclaim.h gc_inline.h gc_pthread_redirects.h gc_typed.h javaxfc.h weakpointer.h > >There are two reasons that I cannot make cord/tests/{cordtest,de}. > >First, cordtest.c and de.c include cord.h, which is not present in $(prefix)/include/ but $(prefix)/include/gc instead. The latter is not in gcc's search directories. > >Second, cord_pos.h is not installed, but cord.h includes this file. > >A quick fix for me is to copy cord_pos.h to $(prefix)/gc/ manually and replace #include "cord.h" with #include "gc/cord.h". > >It seems to me that the building script needs to be updated for cord-related stuff. I have looked into the documentation (doc/README.cords) but I didn't find anything useful. >_______________________________________________ >bdwgc mailing list >[email protected] > https://lists.opendylan.org/mailman/listinfo/bdwgc _______________________________________________ bdwgc mailing list [email protected] https://lists.opendylan.org/mailman/listinfo/bdwgc