|Mar 24, 2012, 05:43 AM||#1|
new gcc no longer works properly(gcc4.2)
I have recently installed Lion on my macbook and then I installed the new Xcode, but upon discovering that the terminal gcc was no longer working I also installed that through Xcode(sth like command line tools).
Anyway, gcc is installed, but it works very strangely. The function rand() began no longer working properly(always giving me approx. same numbers), and even a simple for loop stopped working, getting stuck in the last term of it and not being able to escape from it.
I might post code here, but it won't be of use: My program was working perfectly till I got the new gcc. I can't believe I am the only one having difficulties with the new gcc.
Upon entering "gcc -v" it returns: gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)
|Mar 24, 2012, 10:44 AM||#2|
I'd try a different compiler, like LLVM, and see what happens. If you have XCode 4.3.1, you could try LLVM and the new standard library implementation.
|Mar 24, 2012, 11:39 AM||#3|
This is one reason the man page's brief description for rand is this:
rand, srand, sranddev, rand_r -- bad random number generator(Emphasis added)
Frankly, without knowing how you're seeding it, and without knowing how you're using it, there's no way to diagnose the problem. The same thing goes for your "simple for loop". We don't know what you coded, and anyon'e idea of a simple for loop can mean anything in the actual code.
In short, without code, it's all just guessing.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Sleep no longer working properly||simps100||OS X Mavericks (10.9)||0||Apr 19, 2014 09:28 PM|
|Table of Contents finally works properly in the new Pages!||JD92||Mac Applications and Mac App Store||1||Oct 24, 2013 12:51 PM|
|TV shows downloaded from iTunes no longer play properly||SpectreOne3||Mac Applications and Mac App Store||0||Apr 6, 2013 11:02 PM|
|iPhone: Notifier+ No Longer Works||bertie343||Jailbreaks and iOS Hacks||0||Feb 6, 2013 08:04 PM|
|Networking no longer working properly after 10.8.2, help||Boomish69||OS X||0||Sep 25, 2012 04:45 PM|
All times are GMT -5. The time now is 01:15 PM.