[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] Re: [NOVICE] C++



Frank Damgaard <sslug@sslug> skrev:

> On Wed, May 09, 2001 at 02:44:52 +0200, Fanch wrote:
> 
> > > > /tmp/ccANVyFb.o: In function `main':
> > > > /tmp/ccANVyFb.o(.text+0x9): undefined reference to `cout'
>
> Du må nok vise dit eksempel på C++ program, da de fejl du har
> skyldes manglende include filer.

Ovenstående fejl skyldes at der ikke linkes med C++ biblioteket og kan
derfor helbredes med "-lstdc++".


> Husk at C++ filer har endelserne .C, .cc , .c++ eller .cxx
> (jeg er ikke sikker på at .cpp kan anvendes i følge manual siden,
>  men .cpp anvendes af visse windows oversættere)

.cpp opfattes vist af gcc som pre-processor output. Det nemmeste er
nok at bruge g++ når man vil oversætte C++; så undgås disse problemer.

-- 
Stor hilsen -- Anders


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:08 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *