Fedora Linux Support Community & Resources Center
  #1  
Old 17th August 2007, 07:52 AM
guyenfedora000 Offline
Registered User
 
Join Date: Mar 2007
Posts: 24
Can someone decode this linker error??

I am getting all these weird errors.
I dont know what these sp, dp, gp, ip references are: Can someone more experienced than me explain it? Thanks!
g++ -c -ggdb -W main.c
g++ -c -ggdb -W util.c
g++ -c -ggdb -W global.c
g++ -c -ggdb -W print.c
g++ -c -ggdb -W shell1.c
g++ -c -ggdb -W shell3.c

g++ -o main.out main.o util.o global.o print.o shell1.o shell3.o
util.o: In function `MemInodeAlloc()':
/home/gguyen/Desktop/dev/cs360a/util.c:837: multiple definition of `sp'
main.o:/home/gguyen/Desktop/dev/cs360a/main.c:22: first defined here
util.o: In function `MemInodeAlloc()':
/home/gguyen/Desktop/dev/cs360a/util.c:837: multiple definition of `gp'
main.o:/home/gguyen/Desktop/dev/cs360a/main.c:22: first defined here
util.o: In function `MemInodeAlloc()':
/home/gguyen/Desktop/dev/cs360a/util.c:839: multiple definition of `ip'
main.o:/home/gguyen/Desktop/dev/cs360a/main.c:22: first defined here
util.o: In function `MemInodeAlloc()':
/home/gguyen/Desktop/dev/cs360a/util.c:839: multiple definition of `dp'
Reply With Quote
  #2  
Old 17th August 2007, 08:04 AM
guyenfedora000 Offline
Registered User
 
Join Date: Mar 2007
Posts: 24
Quote:
Originally Posted by guyenfedora000
I am getting all these weird errors.
I dont know what these sp, dp, gp, ip references are: Can someone more experienced than me explain it? Thanks!
g++ -c -ggdb -W main.c
g++ -c -ggdb -W util.c
g++ -c -ggdb -W global.c
g++ -c -ggdb -W print.c
g++ -c -ggdb -W shell1.c
g++ -c -ggdb -W shell3.c

g++ -o main.out main.o util.o global.o print.o shell1.o shell3.o
util.o: In function `MemInodeAlloc()':
/home/gguyen/Desktop/dev/cs360a/util.c:837: multiple definition of `sp'
main.o:/home/gguyen/Desktop/dev/cs360a/main.c:22: first defined here
util.o: In function `MemInodeAlloc()':
/home/gguyen/Desktop/dev/cs360a/util.c:837: multiple definition of `gp'
main.o:/home/gguyen/Desktop/dev/cs360a/main.c:22: first defined here
util.o: In function `MemInodeAlloc()':
/home/gguyen/Desktop/dev/cs360a/util.c:839: multiple definition of `ip'
main.o:/home/gguyen/Desktop/dev/cs360a/main.c:22: first defined here
util.o: In function `MemInodeAlloc()':
/home/gguyen/Desktop/dev/cs360a/util.c:839: multiple definition of `dp'
never mind. found it. Thanks!!!
Reply With Quote
Reply

Tags
decode, error, linker

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The GStreamer plugins to decode "MP3" files cannot be found error message komodo126 Using Fedora 4 29th September 2009 07:23 AM
linker error: undefined reference to __ctype_b premal_mishra Programming & Packaging 0 5th June 2006 06:39 PM
linker error: undefined reference to __ctype_b premal_mishra Using Fedora 0 5th June 2006 06:20 PM
Linker error with profiled build Vaxhacker Programming & Packaging 0 5th July 2005 11:45 PM
MPlayer to decode AAC to WAV... leaded Hardware & Laptops 2 17th November 2004 04:08 PM


Current GMT-time: 23:24 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat