I created a wizard, which creates a MASM project. In the wizard I have the following line:
function SetupProject(project)
{
project.AddLinkLib(_T("kernel32"));
....
}
when I look in the generated project, I expected that the kernel32 library would be listed in the library section of the build option dialog, but it isn't. So I thought that maybe the way this library is added, is by some other mechanism i.e. the projects default settings created by the wizard. Because on the linker commandline I can see that the library is there, only the path is missing.
Actually I don't really like this, because I figure that it should be possible to modify this settings as well, but I haven't found any place in the dialog where this is stored.
In the build option dialog there is this box saying "Append target options to project options" which indicates to me that there shoul dbe some global project options (where I would expect the kernel32.lib to be found) and local options for that specific target (i.e. Debug, Release, etc.). But I can't find any global project options, which may well be because I'm still rather new to CB and don't know all the details.
As an exmaple, when I create the project with the wizard the linker commandline looks like this:
link.exe /nologo /subsystem:console /out:Debug\test.exe kernel32.lib Debug\obj\main.obj /DEBUG
But it should be like this:
link.exe /nologo /LIBPATH:D:\Programme\masm32\lib /subsystem:console /out:Debug\test.exe kernel32.lib Debug\obj\main.obj /DEBUG
And I only get the "/LIBPATH" switch, when I add the path manually in the target library, but not from the wizard. So I would like to know what I do wrong here.