Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 04-17-2005, 12:22 PM   #1 (permalink)
glennandrewcoop
Registered User
 
Join Date: Mar 2005
Posts: 6
glennandrewcoop is on a distinguished road
Compile errors

Hi there,

does anybody know why I'm getting the following compile errors:

Compiler: Default compiler
Executing g++.exe...
g++.exe "C:\Documents and Settings\Glenn\My Documents\Visual Studio Projects\Cinema\main.cpp" -o "C:\Documents and Settings\Glenn\My Documents\Visual Studio Projects\Cinema\main.exe" -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" -I"C:\Dev-Cpp\include\c++\3.4.2\backward" -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" -I"C:\Dev-Cpp\include\c++\3.4.2" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
C:\Documents and Settings\Glenn\My Documents\Visual Studio Projects\Cinema\main.cpp:9: error: new types may not be defined in a return type
C:\Documents and Settings\Glenn\My Documents\Visual Studio Projects\Cinema\main.cpp:9: error: two or more data types in declaration of `menuItem'

C:\Documents and Settings\Glenn\My Documents\Visual Studio Projects\Cinema\main.cpp:9: error: two or more data types in declaration of `menuItem'

C:\Documents and Settings\Glenn\My Documents\Visual Studio Projects\Cinema\main.cpp: In function `void menuItem(int, std::string)':
C:\Documents and Settings\Glenn\My Documents\Visual Studio Projects\Cinema\main.cpp:81: error: new declaration `void menuItem(int, std::string)'
C:\Documents and Settings\Glenn\My Documents\Visual Studio Projects\Cinema\main.cpp:9: error: ambiguates old declaration `customer menuItem(int, std::string)'


In my main.cpp file, if I change the swap the first function declaration with another function, then that function starts throwing up the errors.

Would you need a copy of the code?
glennandrewcoop is offline   Reply With Quote
Old 04-17-2005, 12:42 PM   #2 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
Yes offcourse.
__________________
Valmont is offline   Reply With Quote
Old 04-17-2005, 01:16 PM   #3 (permalink)
glennandrewcoop
Registered User
 
Join Date: Mar 2005
Posts: 6
glennandrewcoop is on a distinguished road
Here's the code:

http://www.austincooper.plus.com/Cinema.zip

I coded up the project in Visual C++ .NET, and I'm trying to get it to run in other compilers (I'm using Bloodshed in this instance)
glennandrewcoop is offline   Reply With Quote
Old 04-17-2005, 01:22 PM   #4 (permalink)
glennandrewcoop
Registered User
 
Join Date: Mar 2005
Posts: 6
glennandrewcoop is on a distinguished road
No need for help, problem sorted.

I was trying to compile the files without setting up a new project.
glennandrewcoop is offline   Reply With Quote
Reply

Bookmarks

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Random Internal Server Errors ZachH PHP 6 03-14-2005 12:29 PM
Suppressing errors with the cp command sde Linux / BSD / OS X 2 11-08-2004 11:15 AM
compile in redhat sde Standard C, C++ 2 06-27-2003 05:18 PM
errors, .. hard drive related? sde Linux / BSD / OS X 1 07-31-2002 09:29 PM


All times are GMT -8. The time now is 04:40 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting