digitalmars.D.learn - "don't know how to make 'src\unittest.d'" error while rebuilding
- Gleb (11/14) Mar 29 2012 Hi folks!
- Dmitry Olshansky (6/19) Mar 29 2012 This should work:
- Gleb (18/20) Mar 29 2012 Dmitry, thank you for your answer!
- Jesse Phillips (5/18) Mar 29 2012 This is a linker error, it can't find phobos.lib.
- Dmitry Olshansky (5/25) Mar 29 2012 Don't forget to place new phobos.lib to dmd2\windows\lib as you are on
- Gleb (4/4) Mar 29 2012 Thank you for the answers.
- Brad Anderson (4/9) Mar 30 2012 http://forum.dlang.org/post/mailman.1238.1333127999.4860.digitalmars-d@p...
- Gleb (2/3) Mar 30 2012 Thank you very much! Problem is solved, curl works great!
Hi folks! I'm trying to recompile Phobos to work with curl under Win7 as described here: digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=161483 As far as I understand, I need to build druntime before building phobos, because phobos depends on druntime's libraries. So I make the following:cd dmd2\src\druntime make -f win32.mak unittestand get an error:Error: don't know how to make 'src\unittest.d'There is no such file dmd2\src\druntime\src\unittest.d. Could you please help me to resolve this issue? Thank you in advance for your advice, it's really appreciated.
Mar 29 2012
On 29.03.2012 17:51, Gleb wrote:Hi folks! I'm trying to recompile Phobos to work with curl under Win7 as described here: digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=161483 As far as I understand, I need to build druntime before building phobos, because phobos depends on druntime's libraries. So I make the following:This should work: make -f win32.mak Personally, I've never built unittest for druntime.cd dmd2\src\druntime make -f win32.mak unittestand get an error:-- Dmitry OlshanskyError: don't know how to make 'src\unittest.d'There is no such file dmd2\src\druntime\src\unittest.d. Could you please help me to resolve this issue? Thank you in advance for your advice, it's really appreciated.
Mar 29 2012
Dmitry, thank you for your answer! On Thursday, 29 March 2012 at 13:57:05 UTC, Dmitry Olshansky wrote:This should work: make -f win32.makI've already gave this a try. I managed to get phobos built without unittests but I can't built my program with new phobos.lib. An error message is as follows: OPTLINK (R) for Win32 Release 8.00.12 Copyright (C) Digital Mars 1989-2010 All rights reserved. http://www.digitalmars.com/ctg/optlink.html D:\UserFiles\D\dmd2\windows\bin\..\lib\phobos.lib(file) Error 42: Symbol Undefined _D3std10__fileinit9useWfuncsOb D:\UserFiles\D\dmd2\windows\bin\..\lib\phobos.lib(file) Error 42: Symbol Undefined _D3std10__fileinit12__ModuleInfoZ --- errorlevel 2 I have commented out all the code related with curl, so it is not because of curl . It looks like my new phobos.lib is somehow bad. I have no idea what does this error mean. Google didn't help. So I was trying to use unittests to find out what's wrong.
Mar 29 2012
On Thursday, 29 March 2012 at 16:51:24 UTC, Gleb wrote:OPTLINK (R) for Win32 Release 8.00.12 Copyright (C) Digital Mars 1989-2010 All rights reserved. http://www.digitalmars.com/ctg/optlink.html D:\UserFiles\D\dmd2\windows\bin\..\lib\phobos.lib(file) Error 42: Symbol Undefined _D3std10__fileinit9useWfuncsOb D:\UserFiles\D\dmd2\windows\bin\..\lib\phobos.lib(file) Error 42: Symbol Undefined _D3std10__fileinit12__ModuleInfoZ --- errorlevel 2 I have commented out all the code related with curl, so it is not because of curl . It looks like my new phobos.lib is somehow bad. I have no idea what does this error mean. Google didn't help. So I was trying to use unittests to find out what's wrong.This is a linker error, it can't find phobos.lib. You can pass phobos2.lib on the commandline, I don't know the linker flags for optlink to find it. sc.ini is the configuration for it though.
Mar 29 2012
On 29.03.2012 20:51, Gleb wrote:Dmitry, thank you for your answer! On Thursday, 29 March 2012 at 13:57:05 UTC, Dmitry Olshansky wrote:Don't forget to place new phobos.lib to dmd2\windows\lib as you are on win32. -- Dmitry OlshanskyThis should work: make -f win32.makI've already gave this a try. I managed to get phobos built without unittests but I can't built my program with new phobos.lib. An error message is as follows: OPTLINK (R) for Win32 Release 8.00.12 Copyright (C) Digital Mars 1989-2010 All rights reserved. http://www.digitalmars.com/ctg/optlink.html D:\UserFiles\D\dmd2\windows\bin\..\lib\phobos.lib(file) Error 42: Symbol Undefined _D3std10__fileinit9useWfuncsOb D:\UserFiles\D\dmd2\windows\bin\..\lib\phobos.lib(file) Error 42: Symbol Undefined _D3std10__fileinit12__ModuleInfoZ --- errorlevel 2 I have commented out all the code related with curl, so it is not because of curl . It looks like my new phobos.lib is somehow bad. I have no idea what does this error mean. Google didn't help. So I was trying to use unittests to find out what's wrong.
Mar 29 2012
Thank you for the answers. Unfortunately, the program compiles correctly with the original phobos.lib in dmd2\windows\lib, but does not compile with the new one in the same directory.
Mar 29 2012
On Thursday, 29 March 2012 at 19:10:25 UTC, Gleb wrote:Thank you for the answers. Unfortunately, the program compiles correctly with the original phobos.lib in dmd2\windows\lib, but does not compile with the new one in the same directory.http://forum.dlang.org/post/mailman.1238.1333127999.4860.digitalmars-d puremagic.com Regards, Brad Anderson
Mar 30 2012
On Friday, 30 March 2012 at 17:20:28 UTC, Brad Anderson wrote:http://forum.dlang.org/post/mailman.1238.1333127999.4860.digitalmars-d puremagic.comThank you very much! Problem is solved, curl works great!
Mar 30 2012