Re: Problem w/ simple Hello World compiled w/ g++
On 6/14/05, Keyser <[EMAIL PROTECTED]> wrote: > >Just tried your code on a freshly installed machine, just standard > >install, no updates performed, and I still cannot reproduce the > >problem. Your code compiles and runs fine. > > > >-- > >Dmitry > > Yeah, that's what I feared. At this point the only plausible cause for this > that I can think of is gremlins. I tried installing FreeBSD 5.4 on a > different, much older and slower box I had, and wouldn't you know, it works. > Maybe FreeBSD 5.x doesn't like my newer mobo or something, who knows at this > point. I've given up on getting it to work on that box. Thanks anyway > though. Would you like to investigate this any further? If yes, could you test RAM in that newer machine with this http://www.memtest86.com/ or this http://www.ocztechnology.com/displaypage.php?name=ocz_memtest , please? Guess utilities like these may find one or two gremlins there. -- Dmitry "We live less by imagination than despite it" - Rockwell Kent, "N by E" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Problem w/ simple Hello World compiled w/ g++
Just tried your code on a freshly installed machine, just standard install, no updates performed, and I still cannot reproduce the problem. Your code compiles and runs fine. -- Dmitry Yeah, that's what I feared. At this point the only plausible cause for this that I can think of is gremlins. I tried installing FreeBSD 5.4 on a different, much older and slower box I had, and wouldn't you know, it works. Maybe FreeBSD 5.x doesn't like my newer mobo or something, who knows at this point. I've given up on getting it to work on that box. Thanks anyway though. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Problem w/ simple Hello World compiled w/ g++
On 6/7/05, Keyser <[EMAIL PROTECTED]> wrote: > >Mine was /usr/home/dd/development/tests/helloworldc++. I wasn't sure > >if the directory mattered either, just wanted to check there was > >nothing unusual there. > > >Athlon XP 2200. > > >Did you update your installation, for example to 5.4-RELEASE-p1, or > >you're running what you installed from CDs? Where did you obtain the > >CDs? > > >-- > >Dmitry > > So you're running 5.4 on an Athlon as well and yours works? Just my luck. > I installed from 5.4 ISO's I downloaded and burned from... umm... I think a > freebsd.org mirror. I have not "updated my installation" I don't think. > How do I go about doing that? Thanks again. Just tried your code on a freshly installed machine, just standard install, no updates performed, and I still cannot reproduce the problem. Your code compiles and runs fine. -- Dmitry "We live less by imagination than despite it" - Rockwell Kent, "N by E" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Problem w/ simple Hello World compiled w/ g++
On Tue, 2005-06-07 at 22:12 +0200, Roland Smith wrote: > On Tue, Jun 07, 2005 at 12:01:41PM -0700, Keyser wrote: > > > I know quite a bit about programming, but not a lot about FreeBSD. > > I've been pulling my hair out all morning just trying to get an > > unbelievably simple c++ "Hello World" program to run (it compiles > > fine) under FreeBSD. Here's the source: > > > It compiles and runs fine on my 5-STABLE box (athlon64). Try compiling > with debugging info, and run it in the debugger. > > Roland I dont know if this will help but do the following: ktrace helloworld kdump -f ktrace.out See anything funky? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Problem w/ simple Hello World compiled w/ g++
On Tue, Jun 07, 2005 at 12:01:41PM -0700, Keyser wrote: > I know quite a bit about programming, but not a lot about FreeBSD. > I've been pulling my hair out all morning just trying to get an > unbelievably simple c++ "Hello World" program to run (it compiles > fine) under FreeBSD. Here's the source: It compiles and runs fine on my 5-STABLE box (athlon64). Try compiling with debugging info, and run it in the debugger. Roland -- R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text. public key: http://www.xs4all.nl/~rsmith/pubkey.txt pgpcFtwmepVYw.pgp Description: PGP signature
Re: Problem w/ simple Hello World compiled w/ g++
On 6/7/05, Keyser <[EMAIL PROTECTED]> wrote: > >Mine was /usr/home/dd/development/tests/helloworldc++. I wasn't sure > >if the directory mattered either, just wanted to check there was > >nothing unusual there. > > >Athlon XP 2200. > > >Did you update your installation, for example to 5.4-RELEASE-p1, or > >you're running what you installed from CDs? Where did you obtain the > >CDs? > > >-- > >Dmitry > > So you're running 5.4 on an Athlon as well and yours works? Just my luck. > I installed from 5.4 ISO's I downloaded and burned from... umm... I think a > freebsd.org mirror. I have not "updated my installation" I don't think. > How do I go about doing that? Thanks again. This is documented in the Handbook, http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html. I am not sure if this will help though. Are you running your program from a terminal window in a window manager, or from a text-mode console, or may be you're accessing the machine remotely? What shell are you using, sh, csh, bash, ... ? Just trying to guess what the difference is. You're probably need to copy freebsd-questions@freebsd.org when replying, to maximize help you can get here. -- Dmitry "We live less by imagination than despite it" - Rockwell Kent, "N by E" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Problem w/ simple Hello World compiled w/ g++
On 6/7/05, Keyser <[EMAIL PROTECTED]> wrote: > >Cannot reproduce. Your program runs fine on my FreeBSD 5.4 machine. > >What directory are you compiling and running the program from? > > >-- > >Dmitry > > Odd. I'm both compiling it (with g++) and running it from the directory > where I created this project: /usr/temp/cpptesting/ Mine was /usr/home/dd/development/tests/helloworldc++. I wasn't sure if the directory mattered either, just wanted to check there was nothing unusual there. > I didn't think where you compile/run your program mattered? To answer your > latest question, I'm running i-386 FreeBSD 5.4 on an Athlon XP 2600, and > haven't had any hardware issues. Thanks for the quick response. Athlon XP 2200. Did you update your installation, for example to 5.4-RELEASE-p1, or you're running what you installed from CDs? Where did you obtain the CDs? -- Dmitry "We live less by imagination than despite it" - Rockwell Kent, "N by E" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Problem w/ simple Hello World compiled w/ g++
On 6/7/05, Dmitry Mityugov <[EMAIL PROTECTED]> wrote: ... > Cannot reproduce. Your program runs fine on my FreeBSD 5.4 machine. > What directory are you compiling and running the program from? Another question: what processor is installed in your FreeBSD 5.4 machine? -- Dmitry "We live less by imagination than despite it" - Rockwell Kent, "N by E" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Problem w/ simple Hello World compiled w/ g++
On 6/7/05, Keyser <[EMAIL PROTECTED]> wrote: > I know quite a bit about programming, but not a lot about FreeBSD. I've been > pulling my hair out all morning just trying to get an unbelievably simple c++ > "Hello World" program to run (it compiles fine) under FreeBSD. Here's the > source: > > //helloworld.cpp > #include > using namespace std; > > int main() > { > cout << "Hello world!" << endl; > return 0; > } > > I use g++ and it compiles fine, but I get an error immediately after running > the program: > > # g++ -v > Using built-in specs. > Configured with: FreeBSD/i386 system compiler > Thread model: posix > gcc version 3.4.2 [FreeBSD] 20040728 > # ls > helloworld.cpp > # g++ -o helloworld helloworld.cpp > # ls > helloworld helloworld.cpp > # ./helloworld > Segmentation fault (core dumped) > > Do I have missing or out of date libraries (not sure how that's possible > since I'm using the > latest version of FreeBSD, 5.4) or something and how do > I remedy that situation? Also, I > haven't "added" anything else related to > development yet, and wouldn't expect I'd have to > just to get a Hello World > program to run properly, but maybe I'm wrong? Cannot reproduce. Your program runs fine on my FreeBSD 5.4 machine. What directory are you compiling and running the program from? -- Dmitry "We live less by imagination than despite it" - Rockwell Kent, "N by E" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Problem w/ simple Hello World compiled w/ g++
I know quite a bit about programming, but not a lot about FreeBSD. I've been pulling my hair out all morning just trying to get an unbelievably simple c++ "Hello World" program to run (it compiles fine) under FreeBSD. Here's the source: //helloworld.cpp #include using namespace std; int main() { cout << "Hello world!" << endl; return 0; } I use g++ and it compiles fine, but I get an error immediately after running the program: # g++ -v Using built-in specs. Configured with: FreeBSD/i386 system compiler Thread model: posix gcc version 3.4.2 [FreeBSD] 20040728 # ls helloworld.cpp # g++ -o helloworld helloworld.cpp # ls helloworld helloworld.cpp # ./helloworld Segmentation fault (core dumped) Do I have missing or out of date libraries (not sure how that's possible since I'm using the latest version of FreeBSD, 5.4) or something and how do I remedy that situation? Also, I haven't "added" anything else related to development yet, and wouldn't expect I'd have to just to get a Hello World program to run properly, but maybe I'm wrong? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"