Multiple definiton strange error - help required quickly - for school
Alexandru DRAGANESC
alexandrudraganesc@yahoo.com
Wed Mar 29 21:50:00 GMT 2006
Hy,
I'm a new user of linux and I'm using gcc to
compile two files.
in file clip.c I've defined one function called
ClipLine, wich i have included in file
principal.c and used the function ClipLine in
main().
when I compile the two files I get this erorr
message:
root@alex:/d/borlandc/bin# g++ principal.c clip.c
-o iesire
/tmp/cc8toH4r.o(.text+0x0): In function
`ClipLine(window, int, int, int, int, int*, int*,
int*, int*)':
: multiple definition of `ClipLine(window, int,
int, int, int, int*, int*, int*, int*)'
/tmp/ccrbPEug.o(.text+0x0): first defined here
collect2: ld returned 1 exit status
can you help me?
pls
thanks in advance,
Alex
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Gcc-help
mailing list