From: Grzegorz J. <ja...@he...> - 2003-08-20 00:20:19
|
On Mon, 18 Aug 2003, Unmesh joshi wrote: > Hi, > > I finally could run VerboseClass sample in the samples directory. > I had to give following commad, which I found in TestSuite.log file. > > ../src/occ -I../src -I../gc VerboseClass.mc -- -L../tmplib -locc -- -o > ./verbose.exe > > ./verbose.exe ./Person.cc -- -- -o ./person.exe > > > I got following warning messages but it did work > > ../gc/gc_cpp.h:132: warning: `_cdecl' redefined > *Initialization*:1: warning: this is the location of the previous definition > g++: Ambiguous abbreviation -- > > > Can you please explain to me what does above commands mean? Why the normal > commnad > occ -m VerboseClass.mc did not work? Most likely because, as you wrote, not everything is installed properly on your platform. The options you get basically mean that occ will be looking for includes in ../src (required to include e.g. 'mop.h' and dependants) and ../gc (required to include 'gc.h' from 'mop.h') and will add '-L../tmplib -locc' to the commandline of the underlying compiler. This in turn will cause the linker run by the underlying compiler to link against libocc.a library found in '../tmplib'. The second '--' is superfluous (a bug in testsuite). > > Also I figured out that generated make script is broken and make install > does not install openc++ properly in the --prefix directory. Plase send output of configure and make. BR Grzegorz ################################################################## # Grzegorz Jakacki Huada Electronic Design # # Senior Engineer, CAD Dept. 1 Gaojiayuan, Chaoyang # # tel. +86-10-64365577 x2074 Beijing 100015, China # # Copyright (C) 2002 Grzegorz Jakacki, HED. All Rights Reserved. # ################################################################## |