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
  •  


Commodore 64 PLA Replacement MOS 906114-01 / PLS100  C64, SX 64 High Quality USA picture

Commodore 64 PLA Replacement MOS 906114-01 / PLS100 C64, SX 64 High Quality USA

$12.99



Commodore OS USB | Bootable LIVE + Install | The Ultimate Gaming Linux OS | NEW picture

Commodore OS USB | Bootable LIVE + Install | The Ultimate Gaming Linux OS | NEW

$11.99



Commodore 64 1351 Compatible Optical Mouse with Adapter (Geos etc) - USA Seller picture

Commodore 64 1351 Compatible Optical Mouse with Adapter (Geos etc) - USA Seller

$29.99



 Pi1541 Zero with Epyx Fastload Hat, Case & 16gb SD for Commodore 64 and 128  picture

Pi1541 Zero with Epyx Fastload Hat, Case & 16gb SD for Commodore 64 and 128

$79.99



BOXED Commodore 64 Computer w/Matching Serial Numbers for Parts/Repair picture

BOXED Commodore 64 Computer w/Matching Serial Numbers for Parts/Repair

$99.99



Commodore 64 Serial Cable 6PIN DIN 1541 1571 C64 128 C128 Disk Drive Printer USA picture

Commodore 64 Serial Cable 6PIN DIN 1541 1571 C64 128 C128 Disk Drive Printer USA

$10.49



Commodore Amiga 1010 External 3.5†Floppy Drive A500 A1000 A2000 Tested Working  picture

Commodore Amiga 1010 External 3.5†Floppy Drive A500 A1000 A2000 Tested Working

$169.99



ðŸ•¹ï¸ Commodore 64 Games on Floppy Disks: Retro Public Domain C64 ðŸ•¹ï¸ picture

ðŸ•¹ï¸ Commodore 64 Games on Floppy Disks: Retro Public Domain C64 🕹ï¸

$8.95



Lot 8 Vintage Commodore 64 C64 C128 GEOS Software Boxed CIB Berkeley Softworks picture

Lot 8 Vintage Commodore 64 C64 C128 GEOS Software Boxed CIB Berkeley Softworks

$349.99



Commodore PLA Replacement MOS 906114-01 / PLS100 for C64, SX 64 High Quality USA picture

Commodore PLA Replacement MOS 906114-01 / PLS100 for C64, SX 64 High Quality USA

$12.99