From: Alexandre T. <kt...@fr...> - 2003-08-20 19:36:03
|
It means that compiling the meta-level (VerboseClass.mc) file will =20 generate a specific OpenC++ compiler able to compile your base-level =20 program (Person.cc). The "-locc" option is passed to the linker by occ =20= and means that the OpenC++ library "libocc.a" is needed at link time. You could instead compile the meta-level file as a plugin (i.e. a =20 dynamic library) and link it to the OpenC++ compiler at runtime. Read the reference guide for more information. Cheerz Alex ------------------------------------------------------------------------=20= - Alexandre Tolmos E-mail:=A0...@fr... ICQ: 92964905 ------------------------------------------------------------------------=20= - "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn." ------------------------------------------------------------------------=20= - > Actually I did not understand what '-locc' option means and why making = =20 > an exe file with the .mc file and then running it to compile .cc file =20= > works? If I dont give -locc option, it does not work > > Thanks, > Unmesh > > >> From: Grzegorz Jakacki <ja...@he...> >> To: Unmesh joshi <unm...@ho...> >> CC: <ope...@li...> >> Subject: Re: [Opencxx-users] Running OCC under cygwin. >> Date: Wed, 20 Aug 2003 08:20:11 +0800 (CST) >> >> 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 -- = =20 >> -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 =20= >> definition >> > g++: Ambiguous abbreviation -- >> > >> > >> > Can you please explain to me what does above commands mean? Why the = =20 >> normal >> > commnad >> > occ -m VerboseClass.mc did not work? >> >> Most likely because, as you wrote, not everything is installed =20 >> properly on >> your platform. >> >> The options you get basically mean that occ will be looking for =20 >> 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 =20= >> -locc' >> to the commandline of the underlying compiler. This in turn will =20 >> cause the >> linker run by the underlying compiler to link against libocc.a = library >> found in '../tmplib'. The second '--' is superfluous (a bug in =20 >> testsuite). >> >> > >> > Also I figured out that generated make script is broken and make =20= >> 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. # >> ################################################################## |