Results 1 to 7 of 7

Thread: Please please help me :(

  1. #1
    Junior Member registered user
    Join Date
    Aug 2003
    Posts
    24

    Please please help me :(

    I really want to stop using suse and make knoppix my main distro but i really need to make this work in order to do it.

    It has to do with c++ and executing source code.
    I type ./a.out and the shell just sits there. It doesnt hang it just sits there looking pretty.

    I run the program with the ddd option and executed it from ddd...execution window comes up and nothing shows up.
    I used anjuta same thing. No compiler errors no warnings but it wont execute.
    Checked the permisions (chnod755) of the file and its execute..tried with no execute from desperation,....same crap.
    And yeah i got make.



    As I said, during compile, NO ERRORS and NO WARNINGS. I demoted my self to a simple hello world program just to keep things simple.



    Code:
    #include <iostream>
    using std::cout;
    using std::endl;
    using std::cin;
    int main ()
    {
    	int x;
    	cin >>x;
    	cout<< x<<endl;
    	
    	return 0;
    	
    }

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041

    Re: Please please help me :(

    --Try recompiling as ELF? (I know nothing about c++ but the kernels I build only support a.out as module, not compiled into kernel.)

    Quote Originally Posted by estranged
    I really want to stop using suse and make knoppix my main distro but i really need to make this work in order to do it.

    It has to do with c++ and executing source code.
    I type ./a.out and the shell just sits there. It doesnt hang it just sits there looking pretty.

    I run the program with the ddd option and executed it from ddd...execution window comes up and nothing shows up.
    I used anjuta same thing. No compiler errors no warnings but it wont execute.
    Checked the permisions (chnod755) of the file and its execute..tried with no execute from desperation,....same crap.
    And yeah i got make.



    As I said, during compile, NO ERRORS and NO WARNINGS. I demoted my self to a simple hello world program just to keep things simple.



    Code:
    #include <iostream>
    using std::cout;
    using std::endl;
    using std::cin;
    int main ()
    {
    	int x;
    	cin >>x;
    	cout<< x<<endl;
    	
    	return 0;
    	
    }

  3. #3
    Junior Member registered user
    Join Date
    Aug 2003
    Posts
    24
    ELF?
    I am kinda lost

  4. #4
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041
    --Not as lost as I am...

    ' man g++ '
    ' /ELF ' (search for ELF)

    -melf
    Generate an executable in the ELF format, rather than the default mmo format used by the mmix simulator.

    --It's a compiler flag that you can pass on the cmd line. But looking back in the man page, it's prolly not applicable for this instance. (shrug) Sorry.

    Quote Originally Posted by estranged
    ELF?
    I am kinda lost

  5. #5
    Junior Member registered user
    Join Date
    Aug 2003
    Posts
    24
    YAAAAAY..i fixed it.

    It seems that when outputing gcc need the gnome-terminal and I didnt have it installed.

    Now it works all nice and good.....one thing though i cant make the text show,,its there (i copied and pasted it to an editor) but even if i change the setting on the terminal the text is white

    thanks though for answering my question i learned something new ELF :P

  6. #6
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041
    --that's very strange... You should be able to run the compiler AND the program from rxvt, xterm, or *text mode* for that matter without anything depending on gnome-terminal. But hey, as long as it works.

    Quote Originally Posted by estranged
    YAAAAAY..i fixed it.

    It seems that when outputing gcc need the gnome-terminal and I didnt have it installed.

    Now it works all nice and good.....one thing though i cant make the text show,,its there (i copied and pasted it to an editor) but even if i change the setting on the terminal the text is white

    thanks though for answering my question i learned something new ELF :P

  7. #7
    Junior Member registered user
    Join Date
    Aug 2003
    Posts
    24
    i know
    I added alot of packages from apt-get.org.
    Maybe something changed there...a path or something like that.

Posting Permissions

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


HP ProLiant MicroServer Gen8 G1610T @2.3 GHz, 16GB, 712317-001 NO HDD/OS picture

HP ProLiant MicroServer Gen8 G1610T @2.3 GHz, 16GB, 712317-001 NO HDD/OS

$199.00



Supermicro CSE-937 3U Storage Chassis No CPU No HDD No Ram Tested & Reset picture

Supermicro CSE-937 3U Storage Chassis No CPU No HDD No Ram Tested & Reset

$129.99



Supermicro 1U Network Server Appliance 16GB RAM 800GB SSD 6 LAN Ports Powers On picture

Supermicro 1U Network Server Appliance 16GB RAM 800GB SSD 6 LAN Ports Powers On

$450.00



Nasuni NF-50 Supermicro Server, Atom CPU C2558, @ 2.40GHz, 8GB RAM-No HDD/OS/AC picture

Nasuni NF-50 Supermicro Server, Atom CPU C2558, @ 2.40GHz, 8GB RAM-No HDD/OS/AC

$250.00



New Barebones Supermicro 5019D Server, 4C/8T Xeon D-2123T, 1U Rackmountable, 10G picture

New Barebones Supermicro 5019D Server, 4C/8T Xeon D-2123T, 1U Rackmountable, 10G

$449.99



Supermicro 2U X10DRU-i 2x E5-2680 v3 2.5ghz 32gb Ram  240gb SSD 2x GPU *READ* picture

Supermicro 2U X10DRU-i 2x E5-2680 v3 2.5ghz 32gb Ram 240gb SSD 2x GPU *READ*

$369.99



Supermicro E200-8D Mini Server Xeon D-1528 6-Core 64GB ECC 1TB SSD 2x10GbE IPMI picture

Supermicro E200-8D Mini Server Xeon D-1528 6-Core 64GB ECC 1TB SSD 2x10GbE IPMI

$525.00



Supermicro CSE-815-5 4B LFF Xeon E3-1240v5 16GB DDR4 1x 9361-8i 4x 1TB SATA HDD picture

Supermicro CSE-815-5 4B LFF Xeon E3-1240v5 16GB DDR4 1x 9361-8i 4x 1TB SATA HDD

$484.00



Supermicro 505-2   Server picture

Supermicro 505-2 Server

$280.00



Supermicro CSE-937 3U Storage Chassis No CPU No HDD No Ram Tested & Reset picture

Supermicro CSE-937 3U Storage Chassis No CPU No HDD No Ram Tested & Reset

$129.99