Results 1 to 2 of 2

Thread: g un pb urgent!

  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
  •  


Dell Poweredge R720 8SFF 2.5

Dell Poweredge R720 8SFF 2.5" x Xeon E5-2680 v2 2.8GHz 20-Cores 128gb 4x Trays

$349.99



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



Dell Poweredge R720 8SFF 2.5

Dell Poweredge R720 8SFF 2.5" 2x Xeon E5-2680 v2 2.8GHz 20-Cores 64gb 4x Trays

$259.99



Dell PowerEdge R710 Server 2x Xeon E5620 2.4GHz 96GB DDR3 Rackmount picture

Dell PowerEdge R710 Server 2x Xeon E5620 2.4GHz 96GB DDR3 Rackmount

$139.99



Dell PowerEdge R620 2x Xeon E5-2630 v2 3.1GHz 2.5

Dell PowerEdge R620 2x Xeon E5-2630 v2 3.1GHz 2.5" 4-BAY 32GB RAM No OS 2x 495w

$174.95



Dell Poweredge R630 2x Xeon E5-2680 v4 2.4ghz 28-Core | 32GB | HBA330 | 2x 1100w picture

Dell Poweredge R630 2x Xeon E5-2680 v4 2.4ghz 28-Core | 32GB | HBA330 | 2x 1100w

$359.99



Dell Poweredge R630 2x Xeon E5-2680 v4 2.4ghz 28-Core  128GB  HBA330  2x 1100w picture

Dell Poweredge R630 2x Xeon E5-2680 v4 2.4ghz 28-Core 128GB HBA330 2x 1100w

$719.99



Dell PowerEdge R640  8xSFF Server Barebone 2 x Heat Sink w / 2x 1100W PSU picture

Dell PowerEdge R640 8xSFF Server Barebone 2 x Heat Sink w / 2x 1100W PSU

$315.00



Dell R640 Diskless Servers 2x Gold 18-Cores 6254 3.10GHz CPU, 32gb RAM, No Raid picture

Dell R640 Diskless Servers 2x Gold 18-Cores 6254 3.10GHz CPU, 32gb RAM, No Raid

$699.00



Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb picture

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb

$374.99