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
  •  


Vintage Link Terminal Mechanical Keyboard Alps Black Switches 840352-30 picture

Vintage Link Terminal Mechanical Keyboard Alps Black Switches 840352-30

$139.95



Title:Rare Vintage Magnetic Core Memory Board Plane – Retro Computing Collectibl picture

Title:Rare Vintage Magnetic Core Memory Board Plane – Retro Computing Collectibl

$2000.00



Vintage eMate 300 Computer System Rare Kids Laptop Newton Operating System picture

Vintage eMate 300 Computer System Rare Kids Laptop Newton Operating System

$349.99



Vintage Laptop Lot With IDE Laptop Drives Lot Of 5 Laptops picture

Vintage Laptop Lot With IDE Laptop Drives Lot Of 5 Laptops

$300.00



Intel GRAMPA BURST 168-pin 486 CPU Interposer/Testing Adapter Board Vintage picture

Intel GRAMPA BURST 168-pin 486 CPU Interposer/Testing Adapter Board Vintage

$289.99



Vintage APPLE Computer Keyboard M0110 and Mouse LOT M0100 & Desktop Bus picture

Vintage APPLE Computer Keyboard M0110 and Mouse LOT M0100 & Desktop Bus

$129.00



Vintage Intel i860 A80860XP-40 SX582 RISC CPU Ceramic RARE SSpec Retro Computing picture

Vintage Intel i860 A80860XP-40 SX582 RISC CPU Ceramic RARE SSpec Retro Computing

$178.46



Vintage MicroPro WordStar Professional 3.30 CP/M-80 Software Factory Sealed 1983 picture

Vintage MicroPro WordStar Professional 3.30 CP/M-80 Software Factory Sealed 1983

$349.99



VINTAGE UMPC Fujitsu Lifebook P1120 8.9

VINTAGE UMPC Fujitsu Lifebook P1120 8.9" Touchscreen Crusoe 800MHz - Windows XP

$349.95



Apple  Mac OS9 Cloth Banner Think Different 64 x 24 inches NEW ORIGINAL Vintage picture

Apple Mac OS9 Cloth Banner Think Different 64 x 24 inches NEW ORIGINAL Vintage

$99.99