Help getting linking to work and ...

"Wink Saville" <wink-hKg/[email protected]>
Newsgroups gmane.comp.tools.aap.user
Message-ID <[email protected]>
Hello,

I'm just starting to try aap and has almost got my first program
compiling/linking using the following recipe:

<recipe>
:usetool msvc

:variant Build
  debug
     OPTIMIZE = 0
     DEFINE += -DPK1_DEBUG
     LIBS += -l../../../Pk1/lib/libtmpk1_WinX86_g.lib
  release
     OPTIMIZE = 4
     DEFINE += -DPK1_NDEBUG
     LIBS += -l../../../Pk1/lib/libtmpk1_WinX86.lib
     
INCLUDE += -I./inc -I../../../Misc/comp/tmAardvarkIic/inc -I../../../App/inc
-I../../../Pk1/inc DEFINE += -DTARGET_WINX86_PK1 SRCPATH = ./src
../../../Misc/comp/tmAardvarkIic/src
srcs $= SetSim1.c aardvark.c

:program SetSim1 : $srcs
</recipe>

The first problem is I get the following error message, but it does compile
source files SetSim1.c and aardvark.c:

<error_message>
'cc' is not recognized as an internal or external command, operable program
or batch file.
Warning: could not test C compiler for being GCC: Error in recipe
"c:/program files/aap/exec/default.aap" line 89: Shell  returned 1 when
executing:
cc -E c:\docume~1\wink~1.sav\locals~1\temp\tmpdxrbad.c >
c:\docume~1\wink~1.sav\locals~1\temp\tmpu6shuv
</error_message>


The "real" problem is that it won't link in my libraries and I get a bunch
of unresolved externals. The link command only has SetSim1.obj and
aardvark.obj not my libraries:

<link>
Aap: link /nologo /out:SetSim1.exe src\build-nt-debug\SetSim1.obj
..\..\..\Misc\comp\tmAardvarkIic\src\build-nt-debug\aardvark.obj
</link>




Help appreciated,

Wink Saville



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.