help-make
[Top][All Lists]
Advanced

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

Re: difference between Cygwin & Linux GNU Make 3.8?


From: Fred J.
Subject: Re: difference between Cygwin & Linux GNU Make 3.8?
Date: Sun, 29 Aug 2004 01:13:30 -0700 (PDT)

may be I can explain it much better.

I get errors when I '$make' as below


:~/C++/SpatialIndexing/tools/regressiontest$ make

BTW; no error if I run the same in Cygwin under
windows, the error happens using a linux box kernel
2.6.8
and both boxes have GNU Make 3.80

//////////////////////ERROR//////////////////////////////
g++ ExternalSort.cc -DNDEBUG -Wall -I../lib -L../lib
-ltools -o ExternalSort
../lib/libtools.a(Tools.o)(.text+0x3416): In function
`Tools::SharedLock::SharedLock[not-in-charge](_pthread_rwlock_t*)':
: undefined reference to `pthread_rwlock_rdlock'
//////////////////////////////////////////////////////////

//////////////////////makefile/////////////////////////////

CXX = g++
CXXFLAGS = -DNDEBUG -Wall

../lib/libtools.a:
        $(MAKE) -C ..

ExternalSort: ExternalSort.cc ../lib/libtools.a
        g++ ExternalSort.cc $(CXXFLAGS) -I../lib -L../lib
-ltools -o ExternalSort
////////////////////////////////////////////////////////////

:~/C++/SpatialIndexing/tools/regressiontest$ cd ..
:~/C++/SpatialIndexing/tools$ tree

|-- lib
|   |-- Point.h
|   |-- PointerPool.h
|   |-- PoolPointer.h
|   |-- Region.h
|   |-- SmartPointer.h
|   |-- TemporaryFile.h
|   |-- Tools.h
|   `-- libtools.a
|-- makefile
|-- regressiontest
|   |-- ExternalSort.cc
|   |-- Generator.cc
|   |-- PropertySet.cc
|   |-- Random.cc
|   |-- ResourceUsage.cc
|   |-- makefile
|   `-- test1
|       `-- run



                
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 




reply via email to

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