This is the mail archive of the cygwin 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]

Compile dclock fails


mark@Duke ~
$ gzip -dc dclock_2.1.2.orig.tar.gz |tar xvf -
dclock/
dclock/Dclock.c
dclock/Dclock.h
dclock/DclockP.h
dclock/Imakefile
dclock/README
dclock/TODO
dclock/dclock.c
dclock/Dclock.ad
dclock/sounds/
dclock/sounds/bell.wav
dclock/sounds/digital.wav
dclock/dclock.1
dclock/Makefile.orig

mark@Duke ~
$ cd dclock

mark@Duke ~/dclock
$ xmkmf
imake -DUseInstalled -I/usr/X11R6/lib/X11/config

mark@Duke ~/dclock
$ make depend
makedepend  --   -I/usr/X11R6/include    -D__i386__ -DWIN32_LEAN_AND_MEAN 
-DX_LOCALE                  -D_X86_ -D__CYGWIN__ -D_XOPEN_SOURCE   
-D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE 
-DFUNCPROTO=15 -DNARROWPROTO     -DUSE_MAKEDEPEND -- Dclock.c dclock.c

mark@Duke ~/dclock
$ make
gcc -O2 -fno-strength-reduce -Wall -Wpointer-arith -I/usr/X11R6/include 
-D__i386__ -DWIN32_LEAN_AND_MEAN -DX_LOCALE -D_X86_ -D__CYGWIN__ 
-D_XOPEN_SOURCE                  -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE   
                    -D_SVID_SOURCE -D_GNU_SOURCE  -DFUNCPROTO=15 
-DNARROWPROTO       -c -o dclock.o dclock.c
dclock.c: In function `Usage':
dclock.c:91: warning: implicit declaration of function `exit'
dclock.c: At top level:
dclock.c:105: warning: return type defaults to `int'
dclock.c: In function `main':
dclock.c:110: warning: suggest parentheses around assignment used as truth 
value
dclock.c:127: warning: control reaches end of non-void function
rm -f dclock.exe
gcc -o dclock.exe -O2 -fno-strength-reduce -Wall -Wpointer-arith 
-L/usr/X11R6/lib   Dclock.o dclock.o -lXt -lSM -lICE -lXext -lX11   -lm 
-Wl,--enable-auto-import
dclock.o(.text+0xb40):dclock.c: multiple definition of `_main'
Dclock.o(.text+0xb40):dclock.c: first defined here
Dclock.o(.text+0xbd3):dclock.c: undefined reference to 
`_dclockWidgetClass'
dclock.o(.text+0xbd3):dclock.c: undefined reference to 
`_dclockWidgetClass'
collect2: ld returned 1 exit status
make: *** [dclock.exe] Error 1

mark@Duke ~/dclock
$

--
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]