From: Claudio L. <c_l...@ho...> - 2005-12-12 20:12:02
|
Hello, I was able to generate shared libs out of a metaclass (only) by using the following two statements: $ occ -c -m BeforeClass.mc $ occ -mBeforeClass BeforeClass.o This yields the two shared libs "BeforeClass-init.so" and "BeforeClass.so". Note that "occ -m BeforeClass.mc " won't work (a lot of undefined symbols). Anyway, when I try to compile the test program, I fail: $ occ -- -o before-test before-test.cc EXECUTING: g++ g++ -D__opencxx -E -o before-test.occ -x c++ before-test.cc unknown:0: the metaclass is not loaded: BeforeClass EXECUTING: g++ g++ -o before-test before-test.ii I tried to set the library path (DYLD_LIBRARY_PATH or even LD_LIBRARY_PATH), and also tried putting the shared libs in "/usr/local/lib", but still the metaclass won't load. Here is part of my configuration: checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin8.3.0 dyld checking which extension is used for loadable modules... .so checking which variable specifies run-time library path... DYLD_LIBRARY_PATH checking for the default library search path... /usr/local/lib /lib /usr/lib Any suggestion on what to try next? Thanks! Claudio. |