Results 1 to 2 of 2

Thread: g un pb urgent!

Hybrid View

  1. #1
    Junior Member
    Join Date
    Dec 2003
    Posts
    1

    g un pb urgent!

    le compilateur g++ de knoppix ne reconnais les types string!
    il m'affiche un message d'erreur : string is used as a type, but is not define as a type.
    et pourtant g correctement inclué la bibliotèque <string> au début!
    g remarqué aussi que le programme créé compile normalement avec debian.mais j'orai voulu pouvoir le compiler sous knoppix!
    g la version de knoppix 3.2. merci de bien vouloir m'aider à trouver l'origine de ce pb de string.

    @+ dams

  2. #2
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    555
    Bonjour, c'est bien parce que c'est Noël, mais franchement cette question n'a rien à voir avec knoppix! De plus il existe un site français dédicacé à cette distributiion. Celui-ci est anglophone.

    Ceci dit, le programme suivant:
    Code:
    #include <iostream>
    #include <string>
    
    using namespace std;
    
    int main()
    {
        string s( "Hello, " );
        s += "KNOPPIX";
    
        cout << s << " world!" << endl;
    
        return 0;
    }
    compile et exécute sans problème sous knoppix 3.2, gcc 3.2.3.
    Je soupçonne l'oubli possible de la clause "using...".
    Si vous voulez absolument l'éviter, il sera nécessaire de préfixer tous les type STL avec std:: (eg std::string).

Similar Threads

  1. URGENT - Knoppix or DEBIAN ofr HD install ???????
    By sam1967 in forum Hdd Install / Debian / Apt
    Replies: 10
    Last Post: 06-21-2005, 01:37 AM
  2. HELP PLEASE !!!URGENT!!! LINUX COMMAND HELP
    By punksm4ck in forum General Support
    Replies: 4
    Last Post: 04-13-2005, 05:48 PM
  3. [URGENT] Accept this challenge !
    By quiquedcode in forum General Support
    Replies: 1
    Last Post: 07-16-2004, 11:35 AM
  4. urgent: RealOne segmentation fault
    By pau in forum General Support
    Replies: 0
    Last Post: 03-12-2004, 08:46 PM
  5. Monitor Issues!!! URGENT!
    By gohan in forum Hardware & Booting
    Replies: 3
    Last Post: 02-25-2004, 02:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Vintage IBM Model M  Keyboard   picture

Vintage IBM Model M Keyboard

$80.00



Vintage IMSAI S-100 Computer CRT System w/ Boards Nonworking Parts/Repair picture

Vintage IMSAI S-100 Computer CRT System w/ Boards Nonworking Parts/Repair

$2699.00



Vintage Dell Latitude CPi A366XT Win 98SE w/USB Support 256MB 60GB HD FDD Serial picture

Vintage Dell Latitude CPi A366XT Win 98SE w/USB Support 256MB 60GB HD FDD Serial

$109.99



Toshiba Satellite Pro 400CDT Vintage Laptop Computer Retro Windows PC Parts Only picture

Toshiba Satellite Pro 400CDT Vintage Laptop Computer Retro Windows PC Parts Only

$125.00



Vintage Shuttle K48 Small Form Factor Pc FOR PARTS OR REPAIR picture

Vintage Shuttle K48 Small Form Factor Pc FOR PARTS OR REPAIR

$100.00



Tektronix Vintage Full-Size QWERTY Keyboard with Numeric Keypad 119-1989-001 picture

Tektronix Vintage Full-Size QWERTY Keyboard with Numeric Keypad 119-1989-001

$79.99



Original Vintage Old Style STANDARD Black CD Jewel Case (Heavy Duty) 90g Lot picture

Original Vintage Old Style STANDARD Black CD Jewel Case (Heavy Duty) 90g Lot

$316.95



Lot Vintage 1991 Apple Microsoft Classic Software Disk Manual User Guide 7.0.1 + picture

Lot Vintage 1991 Apple Microsoft Classic Software Disk Manual User Guide 7.0.1 +

$74.95



Vintage HP Compaq nc6400 Laptop – Windows XP Pro – Works – Charger Included picture

Vintage HP Compaq nc6400 Laptop – Windows XP Pro – Works – Charger Included

$67.00



Compaq Presario 1640 Laptop HP 2940A Vintage Computer, Power Supply and mouse picture

Compaq Presario 1640 Laptop HP 2940A Vintage Computer, Power Supply and mouse

$159.95