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 10-20-2004, 04:53 AM   #1 (permalink)
john_tran
Registered User
 
Join Date: Oct 2004
Posts: 22
john_tran is on a distinguished road
What is this error?

I create an project. And when i compiler, it show an error. I will show my project here:
It's PHANSO.PRJ
It has 2 file : MPHANSO.CPP, and PHANSO.H
-------------------
MPHANSO.CPP's contain shows here:
Code:
#include <stdio.h>
#include <conio.h>
#include <phanso.h>
int main()
{
   return 1;
}
------------------------
PHANSO.H 's contain shows here:
#ifndef _PHANSO_H
#define _PHANSO_H
class CPhanSo
{
};
#endif
----------
When i attempt to compile (to check error, if there is not any error, i will continue to write), The compiler show me an error like this : Declaration syntax error , and the pointer stands at the end of
CPhanSo
Why the error appear?? Did i write a wrong file?
How to solve this error?

Last edited by Valmont; 10-20-2004 at 09:19 AM.
john_tran is offline   Reply With Quote
Old 10-20-2004, 09:22 AM   #2 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
change:
#include <phanso.h>
to:
#include "phanso.h"
__________________
Valmont is offline   Reply With Quote
Old 10-20-2004, 07:38 PM   #3 (permalink)
john_tran
Registered User
 
Join Date: Oct 2004
Posts: 22
john_tran is on a distinguished road
Ah huh?
Why it execute? what is the diferences between <phanso.h> and "phanso.h". If i want to use <phanso.h> instead of "phanso.h", what will i do to correct?
john_tran is offline   Reply With Quote
Old 10-20-2004, 08:02 PM   #4 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
"myheader.h" = Look first in project folder, if not, then check in system settings (usually IDE include and lib paths).

<myheader> = Look in system settings only.

What you need to correct is typing "", instead of <>.
__________________
Valmont is offline   Reply With Quote
Old 10-20-2004, 08:30 PM   #5 (permalink)
john_tran
Registered User
 
Join Date: Oct 2004
Posts: 22
john_tran is on a distinguished road
Give a huge hold to Valmont
Best Admin here!!!
john_tran 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
{perl} HTTP Error Code Response gty All Other Coding Languages 2 09-08-2004 11:09 AM
Error SQL-query in importing file infinite_root PHP 1 06-08-2004 05:17 AM
C++ compile error Amaranthine Standard C, C++ 5 05-05-2004 08:23 PM
Error Ilya020 Standard C, C++ 7 07-10-2003 07:02 AM


All times are GMT -8. The time now is 02:22 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