-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined References to rand_r while installing #914
Comments
Looks like rand_r isn't supported on Windows, because Microsoft views
|
If someone is willing to implement one of the solutions in http://stackoverflow.com/questions/18454814/rand-r-not-in-scope-gcc-mingw-under-cygwin-on-windows for instance, please submit a PR or re-open this ticket. |
This was done at the top of this file: pylearn2/utils/_window_flip.pyx On Wed, Aug 27, 2014 at 2:42 PM, Pascal Lamblin [email protected]
|
If I recall correctly it now builds on Windows, and uses rand(). So, |
You are correct. I check the code before doing my comment and this is what On Wed, Aug 27, 2014 at 2:46 PM, David Warde-Farley <
|
OK, great! |
On Python3, we need to add 'u'.
see also Python 3.3 + Cython 20.1 build failure and Pull #949 |
I just ran in to this issue with python 3 and needed to apply the fix in the above comment. should we open a new issue for this? |
Yes, a new issue would be a good idea. |
Hi,
I am trying to install pylearn2 in windows (Anaconda community edition precisely). The installation breaks while running setup.py develop stating reason as undefined references to rand_r . Is this a known issue with windows/Anaconda or some bug ?
Here is the stacktrace :
C:\mywares\Anaconda\MinGW\bin\gcc.exe -DMS_WIN64 -shared -s build\temp.win-amd64-2.7\Release\pylearn2\utils_window_flip.o build\temp.win-amd64-2.7\Release\pylearn2\utils_window_flip.def -LC:\mywares\Anaconda\libs -LC:\mywares\Anaconda\PCbuild\amd64 -lpython27 -lmsvcr90 -o C:\Users\sony\Downloads\pylearn2-master\pylearn2-master\pylearn2\utils_window_flip.pyd
build\temp.win-amd64-2.7\Release\pylearn2\utils_window_flip.o:_window_flip.c:(.
text+0x598a): undefined reference to
rand_r' build\temp.win-amd64-2.7\Release\pylearn2\utils\_window_flip.o:_window_flip.c:(. text+0x59ae): undefined reference to
rand_r'build\temp.win-amd64-2.7\Release\pylearn2\utils_window_flip.o:_window_flip.c:(.
text+0x59d4): undefined reference to
rand_r' build\temp.win-amd64-2.7\Release\pylearn2\utils\_window_flip.o:_window_flip.c:(. text+0x77a7): undefined reference to
rand_r'build\temp.win-amd64-2.7\Release\pylearn2\utils_window_flip.o:_window_flip.c:(.
text+0x77d4): undefined reference to
rand_r' build\temp.win-amd64-2.7\Release\pylearn2\utils\_window_flip.o:_window_flip.c:(. text+0x77fc): more undefined references to
rand_r' followcollect2.exe: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
The text was updated successfully, but these errors were encountered: