LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 08-02-2007, 02:26 AM   #1
SJD
LQ Newbie
 
Registered: Jan 2007
Posts: 25

Rep: Reputation: 15
Eclipse C++ settings


Hi all,

I recently upgraded from Slackware 11 to Slackware 12 and as such my GCC compiler was upgraded from 3.4.6 to 4.1.2. I have a C++ project that was written with the help of Eclipse 3.2. I can compile my code (an executable and a set of libraries) happily under both Slackware 11 and Slackware 12, but I cannot run my code on Slackware 12. I get an immediate error - terminate exit code -1. I have put a printf statement as the first line of int main() and this never even gets called! Is there something I need to do with upgrading GCC to allow my code to run? I have checked that I can run programs from Slackware 12 with a "Hello World" program so I'm pretty sure my toolchain is correct (it should be - it's taken from the Slackware dvd!).

Thanks for your help,

Steve
 
Old 08-02-2007, 05:37 AM   #2
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 627

Rep: Reputation: 31
Hi,
have you include stdio.h, without it you get a warning, may be it affects something somewhere?
remember that printf writes on terminal, may be you run your progam from a GUI, and don't get output , try to use fprintf to file for example.
hope this helps
bela
 
  


Reply



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
Gnome settings overriding KDE settings frode SUSE / openSUSE 2 04-21-2007 02:35 PM
LXer: Netbeans attempts to eclipse Eclipse LXer Syndicated Linux News 0 04-17-2006 09:54 PM
eclipse settings csfalcon Programming 2 05-16-2005 11:22 AM
Mandrake 10.0 Gnome/KDE Taskbar icon settings...are there settings? LiquidRezin Linux - Newbie 2 03-22-2004 09:27 AM
Changing US keyboard settings to Spain (SP) settings or Mexico. zLinuxz Linux - General 4 12-01-2002 12:49 AM

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

All times are GMT -5. The time now is 12:48 AM.

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