Hello everybody,
I tried to use the versioninfo element to embed versioninfo in one of my DLLs (on Windows). The target definition (see bottom of this message) works without errors, but I wondered, why there is NO Versioninfo within the resulting DLL. Then I found an error: The generated .rc-File does not contain the line:
#include <winver.h>
Without this include there are serveral Makros undefined, e.g.
VS_VERSION_INFO
I added the line by hand and removed the versioninfo element from my target to prevent regeneration of the .rc-file. I compiled it explicitly with msrc and linked the resulting .res file. That worked!
Is there another way to include the winver.h or is it possible, that a newer version of cctask will resolve the problem and generate the include-line? I am using version 1.0b4.
Greetings
Daniel
<target name="SharedLib" depends="init">
<mkdir dir="${build.dir}/runtime" />
<cc outtype="shared" outfile="${build.dir}/runtime/${ant.project.name}" objdir="${obj.dir}" debug="${is-debug}">
<includepath location="include" />
<fileset dir="src" includes="**/*.cpp" />
<defineset>
<define name="EXPORTS" />
</defineset>
<versioninfo fileversion="0.8.15"
productversion="0.8.15"
compatibilityversion="1"
legalcopyright="Copyright by me"
productname="the name of this product"
companyname="funky soft inc."
filedescription="product SharedLib"/>
<compiler name="msrc" if="uses-msvc"/>
<compiler refid="${compiler}.compiler" />
<linker extends="${compiler}.linker"/>
</cc>
</target>
--
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
|