<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Linker warnings bei eigener static lib]]></title><description><![CDATA[<p>Hab mir in VC++2005 eine eigene static lib erstellt die sich problem und ohne warnings compilieren läßt.<br />
Nun hab ich die lib und die zugehörige headerfile in mein eingebunden...</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &lt;iostream&gt;

#include &quot;VirtualDisk.h&quot;
#pragma comment(lib, &quot;VirtualDisk_LIB.lib&quot;)
using namespace std;

int main()
{
...
</code></pre>
<p>und bekomme beim compilieren folgende warnings:</p>
<pre><code>------ Rebuild All started: Project: VirtualDisk, Configuration: Release Win32 ------
Deleting intermediate and output files for project 'VirtualDisk', configuration 'Release|Win32'
Compiling...
main.cpp
Linking...
Generating code
Finished generating code
VirtualDisk_LIB.lib(VirtualDisk.obj) : warning LNK4204: 'g:\Entwicklung\VC++2005\VirtualDisk\Release\vc80.pdb' is missing debugging information for referencing module; linking object as if no debug info
Embedding manifest...
Build log was saved at &quot;file://g:\Entwicklung\VC++2005\VirtualDisk\Release\BuildLog.htm&quot;
VirtualDisk - 0 error(s), 1 warning(s)
------ Rebuild All started: Project: VirtualDisk, Configuration: Debug Win32 ------
Deleting intermediate and output files for project 'VirtualDisk', configuration 'Debug|Win32'
Compiling...
main.cpp
Compiling manifest to resources...
Linking...
VirtualDisk_LIB.lib(VirtualDisk.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
Generating code
Finished generating code
VirtualDisk_LIB.lib(VirtualDisk.obj) : warning LNK4204: 'g:\Entwicklung\VC++2005\VirtualDisk\Debug\vc80.pdb' is missing debugging information for referencing module; linking object as if no debug info
Embedding manifest...
VirtualDisk_LIB.lib(VirtualDisk.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
Generating code
Finished generating code
VirtualDisk_LIB.lib(VirtualDisk.obj) : warning LNK4204: 'g:\Entwicklung\VC++2005\VirtualDisk\Debug\vc80.pdb' is missing debugging information for referencing module; linking object as if no debug info
Build log was saved at &quot;file://g:\Entwicklung\VC++2005\VirtualDisk\Debug\BuildLog.htm&quot;
VirtualDisk - 0 error(s), 6 warning(s)
========== Rebuild All: 2 succeeded, 0 failed, 0 skipped ==========
</code></pre>
<p>Die kann ich jetzt aber nich ganz deuten, weiß da jmd hilfe?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/160589/linker-warnings-bei-eigener-static-lib</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Jul 2026 16:14:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/160589.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 27 Sep 2006 09:56:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Linker warnings bei eigener static lib on Wed, 27 Sep 2006 09:56:43 GMT]]></title><description><![CDATA[<p>Hab mir in VC++2005 eine eigene static lib erstellt die sich problem und ohne warnings compilieren läßt.<br />
Nun hab ich die lib und die zugehörige headerfile in mein eingebunden...</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &lt;iostream&gt;

#include &quot;VirtualDisk.h&quot;
#pragma comment(lib, &quot;VirtualDisk_LIB.lib&quot;)
using namespace std;

int main()
{
...
</code></pre>
<p>und bekomme beim compilieren folgende warnings:</p>
<pre><code>------ Rebuild All started: Project: VirtualDisk, Configuration: Release Win32 ------
Deleting intermediate and output files for project 'VirtualDisk', configuration 'Release|Win32'
Compiling...
main.cpp
Linking...
Generating code
Finished generating code
VirtualDisk_LIB.lib(VirtualDisk.obj) : warning LNK4204: 'g:\Entwicklung\VC++2005\VirtualDisk\Release\vc80.pdb' is missing debugging information for referencing module; linking object as if no debug info
Embedding manifest...
Build log was saved at &quot;file://g:\Entwicklung\VC++2005\VirtualDisk\Release\BuildLog.htm&quot;
VirtualDisk - 0 error(s), 1 warning(s)
------ Rebuild All started: Project: VirtualDisk, Configuration: Debug Win32 ------
Deleting intermediate and output files for project 'VirtualDisk', configuration 'Debug|Win32'
Compiling...
main.cpp
Compiling manifest to resources...
Linking...
VirtualDisk_LIB.lib(VirtualDisk.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
Generating code
Finished generating code
VirtualDisk_LIB.lib(VirtualDisk.obj) : warning LNK4204: 'g:\Entwicklung\VC++2005\VirtualDisk\Debug\vc80.pdb' is missing debugging information for referencing module; linking object as if no debug info
Embedding manifest...
VirtualDisk_LIB.lib(VirtualDisk.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
Generating code
Finished generating code
VirtualDisk_LIB.lib(VirtualDisk.obj) : warning LNK4204: 'g:\Entwicklung\VC++2005\VirtualDisk\Debug\vc80.pdb' is missing debugging information for referencing module; linking object as if no debug info
Build log was saved at &quot;file://g:\Entwicklung\VC++2005\VirtualDisk\Debug\BuildLog.htm&quot;
VirtualDisk - 0 error(s), 6 warning(s)
========== Rebuild All: 2 succeeded, 0 failed, 0 skipped ==========
</code></pre>
<p>Die kann ich jetzt aber nich ganz deuten, weiß da jmd hilfe?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1145288</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1145288</guid><dc:creator><![CDATA[VirtualDreams]]></dc:creator><pubDate>Wed, 27 Sep 2006 09:56:43 GMT</pubDate></item><item><title><![CDATA[Reply to Linker warnings bei eigener static lib on Wed, 27 Sep 2006 11:08:40 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Scheinbar ist die lib im Release-Modus kompiliert und das Hauptprogramm im Debug-Modus. Somit beschwert sich der Linker ob der fehlenden Debugsymbole. Du kannst also nicht in die Lib hinein debuggen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1145330</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1145330</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Wed, 27 Sep 2006 11:08:40 GMT</pubDate></item><item><title><![CDATA[Reply to Linker warnings bei eigener static lib on Wed, 27 Sep 2006 11:48:14 GMT]]></title><description><![CDATA[<p>ah, und wie kann man sagen ob man debug ver oder release ver verwenden soll, geht das mit #pragma comment(...)?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1145346</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1145346</guid><dc:creator><![CDATA[VirtualDreams]]></dc:creator><pubDate>Wed, 27 Sep 2006 11:48:14 GMT</pubDate></item><item><title><![CDATA[Reply to Linker warnings bei eigener static lib on Wed, 27 Sep 2006 12:00:59 GMT]]></title><description><![CDATA[<p>Das muß irgendwo in den Projektoptionen deines VC++ stecken. Wo, weiß ich auch nicht, da ich diese IDE nicht habe.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1145364</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1145364</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Wed, 27 Sep 2006 12:00:59 GMT</pubDate></item><item><title><![CDATA[Reply to Linker warnings bei eigener static lib on Wed, 27 Sep 2006 13:32:22 GMT]]></title><description><![CDATA[<p>Im Debugmodus definiert VC die Variable _DEBUG, über das du den Modus beim Kompilieren abfragen kannst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1145418</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1145418</guid><dc:creator><![CDATA[don_basto]]></dc:creator><pubDate>Wed, 27 Sep 2006 13:32:22 GMT</pubDate></item><item><title><![CDATA[Reply to Linker warnings bei eigener static lib on Wed, 27 Sep 2006 15:53:08 GMT]]></title><description><![CDATA[<p>ok, danke, jetzt fällts mir wie schuppen von den augen ^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1145533</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1145533</guid><dc:creator><![CDATA[VirtualDreams]]></dc:creator><pubDate>Wed, 27 Sep 2006 15:53:08 GMT</pubDate></item><item><title><![CDATA[Reply to Linker warnings bei eigener static lib on Wed, 27 Sep 2006 17:42:42 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=403" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=15" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=1" rel="nofollow">MFC (Visual C++)</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1145607</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1145607</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Wed, 27 Sep 2006 17:42:42 GMT</pubDate></item></channel></rss>