Hello forum.
I'm trying to write my first plugin, and I've read articles in your wiki, and followed the instruction of the video of here:
( thank the author for this video )
So, I've done everything like in video. Plugin works, but linker reports some warning, I read them, understand them, but don't understand how to fix them.
Studio 2010 create another folder-structure ( bigger depth of folder) so i've changed ..\..\lib to ..\..\..\lib in configuring ( I understood that it was right decision because, with the new path It finds all classes and libraries)
But why linker reports warning for non-mathicng output dir. And what to do with MSVCRT defaultlib?
Linker creates some another file (without extension) with the same name as .dll in Modules/Plugin folder.
I'm trying to write my first plugin, and I've read articles in your wiki, and followed the instruction of the video of here:
So, I've done everything like in video. Plugin works, but linker reports some warning, I read them, understand them, but don't understand how to fix them.
1>------ Build started: Project: FirstProj, Configuration: Debug Win32 ------
1> main.cpp
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(C:\Users\E\Documents\Orbiter2010\Orbitersdk\samples\FirstProj\Debug\FirstProj.dll) does not match the Linker's OutputFile property value (C:\Users\E\Documents\Orbiter2010\Modules\Plugin\first.dll). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(992,5): warning MSB8012: TargetName(FirstProj) does not match the Linker's OutputFile property value (first). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
1> LINK : ..\..\..\..\Modules\Plugin\first.dll not found or not built by the last incremental link; performing full link
1> Creating library C:\Users\E\Documents\Orbiter2010\Orbitersdk\samples\FirstProj\Debug\FirstProj.lib and object C:\Users\E\Documents\Orbiter2010\Orbitersdk\samples\FirstProj\Debug\FirstProj.exp
1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
1> FirstProj.vcxproj -> C:\Users\E\Documents\Orbiter2010\Orbitersdk\samples\FirstProj\Debug\FirstProj.dll
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Studio 2010 create another folder-structure ( bigger depth of folder) so i've changed ..\..\lib to ..\..\..\lib in configuring ( I understood that it was right decision because, with the new path It finds all classes and libraries)
But why linker reports warning for non-mathicng output dir. And what to do with MSVCRT defaultlib?
Linker creates some another file (without extension) with the same name as .dll in Modules/Plugin folder.
Last edited: