Multiple definiton strange error - help required quickly - for school

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

 



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 

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux