Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 22 Oct 2014, 00:47
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
C++ programming problem
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
erouting

Joined: 18 Jan 2012
Posts: 2

PostPosted: Thu 14 Jun 2012, 17:42    Post_subject:  C++ programming problem  

I am trying to use slacko puppy to compile C++ programs. I have the devx package installed. The test program compiled correctly. Its sole purpose was to add 3 and 4 to get 7. The output was 7. I then attempted to write something using the GNU MP libraries, the output of that was 7. My math is shaky at times but I am reasonably certain that (9*10^200)-5 is not equal to 7. I deleted everything, moved to a different directory and specified a different output file. Still 7. According to my c++ program the following lines all output 7:

cout << "I am not seven." << endl;
cout << "90000000000000000000000000" << endl;
cout << a - b << endl;
(where a =100 and b=50).

Why are g++/c++ working off an old program that no longer exists on my computer? Why do they use this nonexistent program regardless of what input file I point it at? How do I make it stop?
Back to top
View user's profile Send_private_message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Fri 15 Jun 2012, 18:45    Post_subject:  

Very Happy Very Happy Very Happy
HURRAY
Very Happy Very Happy Very Happy
Razz Razz Razz
I am pretty sure it's not slacko's fault.
I bet a lot that the ThreadStarter has forgotten to change the current working directory OR did not started clean
Code:
make clean

Razz Razz Razz
Cheers !
Back to top
View user's profile Send_private_message Visit_website 
erouting

Joined: 18 Jan 2012
Posts: 2

PostPosted: Fri 15 Jun 2012, 21:01    Post_subject:  

Yep, wrong CWD, thanks for the help and sorry for having to ask in the first place.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0461s ][ Queries: 12 (0.0100s) ][ GZIP on ]