VS project seems to want to call Optlink
Closed this issue · 6 comments
I get a linker failure when building with VC10, but I think I know why:
1>------ Build started: Project: FeedBack, Configuration: Debug x64 ------
1>Building .\FeedBack_Debug.exe...
1>OPTLINK (R) for Win32 Release 8.00.13
1>Copyright (C) Digital Mars 1989-2010 All rights reserved.
1>http://www.digitalmars.com/ctg/optlink.html
1>OPTLINK : Warning 9: Unknown Option : OUT
1>OPTLINK : Error 12: Number Overflow : �
1>Building .\FeedBack_Debug.exe failed!
1>Details saved as "file://C:\dev\projects\feedback\build\x64\Debug\FeedBack.buildlog.html"
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========
I suppose feedback
should use VC's linker, right? I'm not sure how to override this in VisualD, hmm.
Ok, found the fix. I've added a pre-build command in Build Events for the FeedBack
project, essentially calling C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\vsvars32.bat
so the proper link.exe is called.
Ah yeah, DMD installer + and VisualD are supposed to sort all these things out by default. If your VS + VD installation didn't work out-of-the-box, you should log VisualD bugs with your particular environment details, so it can be detected properly in the future.
This is surprising though, I can't imagine why it would even try and invoke OPTLINK, it should be trying to run MS link.exe. Were you building for 32bit instead of x64?
What is your environment?
I never used the DMD installer, maybe that's the issue. And no, I was using x64 as was the default. I'll give it another go today. :>
Ah, that'll be it. The installer populates sc.ini with paths and stuff for detected VS installations.
Bear in mind, it only shows a blue screen when it runs unless there is a song loaded and a controller connected ;)
But it's playable now. UI is the next step, menus and all that... I hate UI! >_<
It's an interesting project, I'm interested in audio-dev and game-dev. If I get this to build later I might just jump in and start hacking. :>
Have you had any contributions by anyone yet?
Nope. Lots of interest though, but no contributions yet.
I'm just populating the issue tracker with things as I think of them, and if people want to work on them, they're welcome to take them and break them down.
Ideally I want people other than me working on it too, because I see this as an experiment/case study, and I don't want it to be too polluted by my own conventional C++-ish typical gamedev style. I'd like to see other people with more idiomatic input train the direction a bit too, and then in retrospect we will probably learn some interesting lessons.