[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Wrong link option given to g++

From: Arthur Schwarz
Subject: Wrong link option given to g++
Date: Thu, 12 Mar 2015 15:23:23 -0700

Win7-64 bit
Cygwin 64-bit
g++ 4.9.2

I'm trying to link test program. The linker command option given to g++
during 'make check' says "don't link". Any way around this?

check_PROGRAMS     = test
test_INCLUDE       = -I$(top_srcdir)/src
test_SOURCES       = $(testCPP) $(testHead)
test_LDADD         = libslip.a

'make check' contains:
g++ -std=gnu++11 -Wall -Wno-reorder -Wno-unused-value -Wno-address
-Wno-sequence-point -Wmaybe-uninitialized -c -g  -o test.exe Test.o
TestErrors.o TestGlobal.o TestHeader.o TestIO.o TestMisc.o TestOperators.o
TestReader.o TestReplace.o TestSequencer.o TestUtilities.o  libslip.a

which works when the "-c" option is removed.

g++ --help  =>  -c  Compile and assemble, but do not link

Is the linker command supposed to be given in a test script in the file (TEST=script)?

The failure of the past is the challenge of the present and the success of
the future.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]