Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 6th, 2007, 6:02 PM   #1
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 855
Rep Power: 3 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
Strange errors...

I am attempting to compile a simple C++ program (see below), and I keep getting numerous error messages.

#include <iostream>

int main (int argc, char * const argv[]) {
    std::cout << "Hello, World!\n";
    return 0;
}
The problem seems to be with the #include <iostream> statement. The errors begin as follows:

error: '::memcpy' has not been declared
error: '::memmove' has not been declared
error: '::strcpy' has not been declared
error: '::strncpy' has not been declared
...
What am I doing wrong? I am using Apple Xcode, if that is relevant. Also, perhaps I should mention that I created String.cpp/String.h and was attempting to implement a string class, and the error first appeared when I tried to #include <iostream> in String.cpp; however, the error persisted even when I deleted these files. Thanks.

EDIT: I created a new project and named the class and files MyStr.cpp/MyStr.h and everything seems to work (so far); could the errors have occured because of the file/class name?
titaniumdecoy is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Valgrind reports errors with basic programs Jessehk C 4 Feb 24th, 2007 10:07 PM
Strange behavior: getting different results from the same input on a function. WTH? pulpfiction C 1 Mar 28th, 2006 11:43 PM
Very annoying errors Aphex_Twin C++ 2 Jun 9th, 2005 3:43 PM
Strange PHP Sessions Errors stakeknife PHP 2 Apr 14th, 2005 7:24 AM
scandir etc errors in MSVC. Siphon C++ 5 Feb 4th, 2005 3:15 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:34 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC