From: Unmesh j. <unm...@ho...> - 2003-08-20 12:42:25
|
Actually I did not understand what '-locc' option means and why making an exe file with the .mc file and then running it to compile .cc file 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 -- -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. # >################################################################## > > > >------------------------------------------------------- >This SF.net email is sponsored by Dice.com. >Did you know that Dice has over 25,000 tech jobs available today? From >careers in IT to Engineering to Tech Sales, Dice has tech jobs from the >best hiring companies. http://www.dice.com/index.epl?rel_code=104 >_______________________________________________ >Opencxx-users mailing list >Ope...@li... >https://lists.sourceforge.net/lists/listinfo/opencxx-users _________________________________________________________________ Are you a geek? Do gizmos make you grin? http://www.msn.co.in/Computing/Gizmos/ Click here! |