C++ compiler problems with FC2

Paul paul at all-the-johnsons.co.uk
Tue Aug 31 18:18:18 UTC 2004


Hi,

> Yes, it was dumb of me to not include the code that I was trying to 
> compile -- it was from www.opengc.org.  (As an aside, I had the same test 
> results as Rob Cochran.)
> 
> The file that I was trying to compile begins:
> 
> #include <FL/Fl.H>   // this is from fltk-devel
> #include "ogcAppObject.h"
> 
> And, ogcAppObject.h begins:
> 
> #include <iostream>
> 
> These are the error messages:

>                   from /home/steve/opengc55-fgfs094/opengc/Source/Base/main.cpp:45:
> /usr/include/c++/3.3.3/cstring:79: error: `memcpy' not declared
> /usr/include/c++/3.3.3/cstring:80: error: `memmove' not declared

#include <cstdlib>

> /usr/include/c++/3.3.3/cstring:81: error: `strcpy' not declared
> /usr/include/c++/3.3.3/cstring:82: error: `strncpy' not declared
> /usr/include/c++/3.3.3/cstring:83: error: `strcat' not declared
> /usr/include/c++/3.3.3/cstring:84: error: `strncat' not declared

#include <cstring>

Should fix that lot.

>                   from /home/steve/opengc55-fgfs094/opengc/Source/Base/main.cpp:45:
> /usr/include/c++/3.3.3/cmath: At global scope:

using namespace std; will help

Hmm, not much to it really ;-)

TTFN

Paul
-- 
"Our enemies are innovative and resourceful - and so are we,"
"They never stop thinking about new ways to harm our country and our
people - and neither do we." - George W. Bush, Aug 2004
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.fedoraproject.org/pipermail/test/attachments/20040831/2b1ae7ea/attachment.bin 


More information about the test mailing list