LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-04-2004, 02:38 PM   #1
philblou
LQ Newbie
 
Registered: Aug 2004
Posts: 1

Rep: Reputation: 0
Question How can I compile 64bit with g++, Enterprise 3, AMD64 ??


Hello!

I'm trying to compile a program in 64bits doing:
>g++ -m64 t.cpp -o foo
I get
cc1plus: sorry, not implemented: 64-bit mode not compiled in

The error message confuse me:
-Do I have a bad installation?

-cc1plus, I've done plenty of search on google (and here) for that, but I can't figure out what it is.

My program has nothing to do with it (at the simplest, it's a main() with a return 0; )
My hardware is a HP box with AMD64 inside. We installed Linux Enterprise 3 on it. Full install.

I've seen stuff about "configure", but that command "does not exist" at my prompt.

Hints and Links (or solutions ;-) ) are welcome :-)

Thanks

Blou
 
Old 08-04-2004, 05:04 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,695

Rep: Reputation: 232Reputation: 232Reputation: 232
You need 64-bit version of teh compiler to compile 64 bit executable. You have probably 32-bit system (as AMD 64 can emulate 32 bit). So you need to upgrade (at least the compiler, but you should the whole system).

cc1plus is a part of g++ (preprocessor, if I remember correctly).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multimedia Capability on the AMD64 with 64Bit OS jayptr Linux - Software 0 02-11-2005 11:16 AM
amd64 on core 3 is it 64bit code? barrythai Fedora 4 01-16-2005 11:57 PM
64bit Fedora on a SUN ULTRA ENTERPRISE 450 batphink Linux - Hardware 6 10-08-2004 09:52 PM
Linux Enterprise WS v3.0 not installing on AMD64 FX-51, ASUS SK8V Mother Board astefano Linux - Hardware 9 05-03-2004 02:33 PM
SUSE 9.0/64bit (AMD64) KDE log in issue syx Linux - Newbie 2 02-05-2004 04:33 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration