linking C++ object files

Luc Hermitte <[email protected]> Wed, 24 Nov 2004 16:24:02 +0100
Newsgroups gmane.comp.tools.aap.user
Message-ID <20041124152401.GA2224@jade>
Hello,

I'm runing into something strange with the latest AAPs (1.068 & 1.072).

I have a program made of two .cpp files.
AAP correctly uses "g++ -c" on both of them, but it uses "gcc" to link
the object files produced/
According to http://www.a-a-p.org/aapversionlog.html, I understand I
should not have any problem since theversion 1.031, but I have.

I'm running aap.bat from cygwin. My main.aap contains:

    UNITS = realpath 
    SRC   = cw-$*UNITS
    TESTS = tests/test_$*UNITS

    # For cygwin only!
    :usetool gcc

    :print tests::BDIR        is $BDIR
    :print tests -> $TESTS

    all : $TESTS

    # ###################################################################
    # Recipes

    :program tests/test_realpath : tests/test_realpath.cpp cw-realpath.cpp


Do I have to specify additionnal libraries, or force the filetype ? Or
is it a bug ?


BTW, is there an AAP compiler-plugin for vim somewhere ?

-- 
Luc Hermitte


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/