Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: gcc1.dsl acting wierd, library oddities...< Next Oldest | Next Newest >
SaidinUnleashed Offline





Group: Members
Posts: 1428
Joined: Mar. 2004
Posted: Nov. 03 2004,17:33 QUOTE

I've noticed that in the gcc1.dsl the old "legacy" libraries, like iostream.h, work fine, but the current libraries like string, ios, and iostream do not work properly.

Don't know if this is a bug in just the .dsl or in that version of gcc, because I don't have a non-DSL computer handy, but I'll test later.

ke4nt1 has noticed some oddities as well.

Just thought you guys would want to know.

-J.P.


--------------
They say if you play a Microsoft CD backwards, you hear satanic messages. That's nothing, cause if you play it forwards, it installs Windows.

Unleash the power of the TILDE~~~
Back to top
Profile PM AOL MSN YIM 
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: Nov. 05 2004,16:03 QUOTE

I found this link to a page that shows how to use c++ in gcc.  I think you also need to type g++ not gcc for c++ programs.  Here's a sample from that site:

Code Sample
// query.cpp
//
// compile: g++ -Wall -o query query.cpp

#include <iostream>
#include <string>

int main()
{
 std::string firstName;
 std::string lastName;
 unsigned int age;

 // Ask the user to input their personal information
 std::cout << "\nHello ... please type (and hit <return>) your first name: ";
 std::cin >> firstName;

 std::cout << "Please type (and hit <return>) your last name: ";
 std::cin >> lastName;

 std::cout << "Please type (and hit <return>) your age: ";
 std::cin >> age;

 std::cout << "\nHello " << firstName << " " << lastName << " (age = " << age << ")!\n\n";

 return 0;
}
Back to top
Profile PM 
1 replies since Nov. 03 2004,17:33 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: gcc1.dsl acting wierd

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code