linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: Windows can use cpp in c code but in linux ?? I dont know how .
@ 2004-09-30 17:12 Huber, George K RDECOM CERDEC STCD SRI
  2004-09-30 22:24 ` Jan-Benedict Glaw
  2004-10-02  6:40 ` mojtaba mahdavi
  0 siblings, 2 replies; 3+ messages in thread
From: Huber, George K RDECOM CERDEC STCD SRI @ 2004-09-30 17:12 UTC (permalink / raw)
  To: linux-c-programming

Suciu wrote:


>To solve this is easy, link with the c++ library: -lstdc++

>gcc a.c mylib.a -lstdc++

Or you could use g++ (the GNU C++ compiler)  It should handle
C files as well.

George

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Windows can use cpp in c code but in linux ?? I dont know how .
  2004-09-30 17:12 Windows can use cpp in c code but in linux ?? I dont know how Huber, George K RDECOM CERDEC STCD SRI
@ 2004-09-30 22:24 ` Jan-Benedict Glaw
  2004-10-02  6:40 ` mojtaba mahdavi
  1 sibling, 0 replies; 3+ messages in thread
From: Jan-Benedict Glaw @ 2004-09-30 22:24 UTC (permalink / raw)
  To: linux-c-programming

[-- Attachment #1: Type: text/plain, Size: 863 bytes --]

On Thu, 2004-09-30 13:12:16 -0400, Huber, George K RDECOM CERDEC STCD SRI <George.K.Huber@us.army.mil>
wrote in message <E3E30069B061524E90BCEE4417E3066113853D@monm207.monmouth.army.mil>:
> Suciu wrote:
> >To solve this is easy, link with the c++ library: -lstdc++
> 
> >gcc a.c mylib.a -lstdc++
> 
> Or you could use g++ (the GNU C++ compiler)  It should handle
> C files as well.

However, there are good reasons to use a C compiler for C code. Eg. try
using C99 style structure initializers with a g++ :-)

MfG, JBG

-- 
Jan-Benedict Glaw       jbglaw@lug-owl.de    . +49-172-7608481             _ O _
"Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg  _ _ O
 fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!   O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Windows can use cpp in c code but in linux ?? I dont know how .
  2004-09-30 17:12 Windows can use cpp in c code but in linux ?? I dont know how Huber, George K RDECOM CERDEC STCD SRI
  2004-09-30 22:24 ` Jan-Benedict Glaw
@ 2004-10-02  6:40 ` mojtaba mahdavi
  1 sibling, 0 replies; 3+ messages in thread
From: mojtaba mahdavi @ 2004-10-02  6:40 UTC (permalink / raw)
  To: Huber, George K RDECOM CERDEC STCD SRI; +Cc: linux-c-programming

Thanks to all 

My problem has been solved. 

yours sincerely. 

mahdavi. 



On Thu, 30 Sep 2004 13:12:16 -0400, Huber, George K RDECOM CERDEC STCD
SRI <george.k.huber@us.army.mil> wrote:
> Suciu wrote:
> 
> >To solve this is easy, link with the c++ library: -lstdc++
> 
> >gcc a.c mylib.a -lstdc++
> 
> Or you could use g++ (the GNU C++ compiler)  It should handle
> C files as well.
> 
> George
> -
> To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-10-02  6:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-30 17:12 Windows can use cpp in c code but in linux ?? I dont know how Huber, George K RDECOM CERDEC STCD SRI
2004-09-30 22:24 ` Jan-Benedict Glaw
2004-10-02  6:40 ` mojtaba mahdavi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).