LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-21-2004, 12:13 PM   #1
freeindy
Member
 
Registered: Nov 2002
Posts: 207

Rep: Reputation: 32
problem in compiling anjuta


hi!

i used to program in visual studio a long time ago and have been developing in java lately so my head might be confused at the moment. i'm trying to compile following class in anjuta IDE:

Code:
//Song.h

#ifndef _SONG_H_
#define _SONG_H_

#include "defines.h"

#define MAX_ARTIST_CHAR 256;
#define MAX_TITLE_CHAR 256;

class Song
{
	public:
		Song();
		 ~Song();
	
		// Song interface
		int setArtist(char* artist);
		int getArtist(char* artist);

		int setTitle(char* title);
		int getTitle(char* title);	
	protected:
		// Song variables
		char *artist_ = new char[MAX_ARTIST_CHAR];
		char* title_ = new char[ MAX_TITLE_CHAR];
};
but i'm getting compiling error on (it says simply 'syntax error before ';' token'):

Code:
char *artist_ = new char[MAX_ARTIST_CHAR];
char* title_ = new char[ MAX_TITLE_CHAR];
i can't figure it out.! does anyone see the problem.

thanks!

indy
 
Old 01-21-2004, 05:17 PM   #2
freeindy
Member
 
Registered: Nov 2002
Posts: 207

Original Poster
Rep: Reputation: 32
sorry, the subject is ment to be:
problem compiling IN anjuta
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem about compiling anjuta 2.0.1 in SLES 9 hongxing SUSE / openSUSE 7 10-19-2005 09:19 AM
problem about compiling anjuta hongxing SUSE / openSUSE 1 10-12-2005 02:09 AM
Problem compiling GTK apps in Anjuta MG-Cloud Linux - Software 1 11-16-2003 04:02 PM
Anjuta compiling issue in Slack 9.. JoooN Linux - Software 1 07-03-2003 06:25 AM
Anjuta compiling issue in Slack 9... JoooN Slackware 4 04-16-2003 09:19 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration