This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ Compilers : Comparative Performance Testsuite


Hi Gerrit,

"Gerrit P. Haase" <gp@familiehaase.de> wrote in message 118743930094.20031101014819@familiehaase.de">news:118743930094.20031101014819@familiehaase.de...
> Hallo Alex,
>
> Am Freitag, 31. Oktober 2003 um 19:41 schriebst du:
>
>
> > "Gerrit P. Haase" <freeweb@nyckelpiga.de> wrote
> > [snip]
> >>
> >> I posted a Makefile to build a Cygwin version of STLport with DLL's and
> >> static archives:  http://www.cygwin.com/ml/cygwin/2003-06/msg00790.html
> >>
> >> If it shows up that using STLport instead of libstdc++ templates
> >> increases the speed of the code running, maybe someone volunteers to
> >> maintain an STLport package for Cygwin?
> >>
> > [snip]
>
> > I have done the following things :
>
> > $ cd STLport-4.5.3
> > $ ln -s /usr/include/c++/3.3.1 g++-v3
> > $ cd src
> > $ make
> > [---omitted---]
> > $ cd ../lib
> > $ ls -1
> > libstlport-45.dll
> > libstlport.a
> > libstlport.dll.a
> > libstlport_stldebug-45.dll
> > libstlport_stldebug.a
> > libstlport_stldebug.dll.a
> > obj
>
>
> > Now I would like to compile file foo.cpp _with stlport libraries_
> > using the Cygwin/MinGW compiler.
> > How to do that?
>
> g++ -c -o foo.o foo.cpp
> gcc -o foo -lstlport
>
> g++ -mno-cygwin -c -o foo.o foo.cpp
> gcc -mno-cygwin -o foo -lstlport
>
>

$ g++ -c -o foo.o foo.cpp

$ gcc -o foo -lstlport
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld: cannot find -lstlport
collect2: ld returned 1 exit status


Where should one put stlport libraries ?


Extra info :
$ pwd
/

$ ls -l
total 2
drwxr-xr-x    2 Administ None            0 Oct  3  2002 bin
-rwxr-xr-x    1 Administ None           57 Oct  3  2002 cygwin.bat
-rw-r--r--    1 Administ None          766 Sep 22 08:46 cygwin.ico
drwxr-xr-x   18 Administ None            0 Oct  3  2002 etc
drwxr-xr-x    3 Administ None            0 Oct  3  2002 home
drwxr-xr-x   28 Administ None            0 Oct  3  2002 lib
drwxr-xr-x    3 Administ None            0 Oct  3  2002 tmp
drwxr-xr-x   20 Administ None            0 Oct  3  2002 usr
drwxr-xr-x    9 Administ None            0 Oct  3  2002 var

$ cd usr
drwxr-xr-x   11 Administ None            0 Oct  3  2002 X11R6
drwxr-xr-x    4 Administ None            0 Sep 13 10:32 autotool
drwxr-xr-x   52 Administ None            0 Oct  3  2002 doc
drwxr-xr-x    2 Administ None            0 Sep 14 08:53 etc
drwxr-xr-x    3 Administ None            0 Sep 13 10:32 i686-pc-cygwin
drwxr-xr-x    2 Administ None            0 Sep 22 08:46 i686-pc-mingw32
drwxr-xr-x   33 Administ None            0 Oct  3  2002 include
drwxr-xr-x    2 Administ None            0 Oct  3  2002 info
drwxr-xr-x    3 Administ None            0 Oct  3  2002 libexec
drwxr-xr-x    5 Administ None            0 Oct  3  2002 local
drwxr-xr-x    2 Administ None            0 Oct  3  2002 logs
drwxr-xr-x   19 Administ None            0 Oct  3  2002 man
drwxr-xr-x    5 Administ None            0 Oct  3  2002 sbin
drwxr-xr-x   42 Administ None            0 Oct  3  2002 share
drwxr-xr-x    5 Administ None            0 Oct  3  2002 src
drwxr-xr-x    6 Administ None            0 Sep 13 21:56 ssl
drwxr-xr-x    2 Administ None            0 Oct  3  2002 tmp
drwxr-xr-x    2 Administ None            0 Oct  3  2002 var


===> Note! There is no 'lib' under 'usr'.


--
 =====================================
   Alex Vinokur
     mailto:alexvn@connect.to
     http://mathforum.org/library/view/10978.html
     news://news.gmane.org/gmane.comp.lang.c++.perfometer
   =====================================











--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]