| | |
Linking problem in make file.
![]() |
•
•
Join Date: Aug 2008
Posts: 5
Reputation:
Solved Threads: 0
Hi,
After calling make using the makefile bellow i receive .o and .p files. but in the linking part i receive errors : undefined reference to....
thhe makefile:
CC=gcc -c
LD=g++
SRCS= a.cpp b.cpp tmp/c.cpp tmp/d.cpp............
OBJ=$(SRCS:.cpp=.o)
INCLI= ...
all: BBB
BBB: $(OBJ)
@echo "Linking...."
$(LD) $(OBJ) -o BBB $(OBJLIBS)
@echo "Linking complete"
%.o : %.cpp
@echo "Compiling: "
@echo $@
$(CC) $(INCLI) -MD -o $@ $<
@cp $*.d $*.P; \
sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
-e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.P; \
rm -f $*.d
Could anyone advise me ?
After calling make using the makefile bellow i receive .o and .p files. but in the linking part i receive errors : undefined reference to....
thhe makefile:
CC=gcc -c
LD=g++
SRCS= a.cpp b.cpp tmp/c.cpp tmp/d.cpp............
OBJ=$(SRCS:.cpp=.o)
INCLI= ...
all: BBB
BBB: $(OBJ)
@echo "Linking...."
$(LD) $(OBJ) -o BBB $(OBJLIBS)
@echo "Linking complete"
%.o : %.cpp
@echo "Compiling: "
@echo $@
$(CC) $(INCLI) -MD -o $@ $<
@cp $*.d $*.P; \
sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
-e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.P; \
rm -f $*.d
Could anyone advise me ?
You may need to contact the application's developer to see if she/he has any ideas regarding how this can be resolved. If you do, be sure to include the distro and version you're using so they have an idea of the file system structure you have in place. Also provide them with the application's version number if there is one.
Bill
Bill
![]() |
Similar Threads
- I need to resolve a directx problem (C++)
- Problem. (C++)
- Link problem when using matlab engine in C++ project in Mac Os with gcc (C++)
- Gaussian Random number generator (C)
- I need a linking confirmation (C++)
- g++ allegro linking (C++)
- Hopefully easy question about linking... (C++)
- C++ linking problem (C++)
- vc++ mfc-i can't make getline work with a string for file input (C++)
- Having trouble trying to use a global structure (C)
Other Threads in the IT Professionals' Lounge Forum
- Previous Thread: Linux>xp ok xp > linux not OK
- Next Thread: What is the meaning of the local host and local domain in case of a linux software
| Thread Tools | Search this Thread |
1gbit advertising advice amazon answers archive british broadband business businessprocesses career carrier censorship cern china cio collectiveintelligence connectivity consumer consumers corporateearnings datatransfer debtcollectors dictionary digg digital ebay ecommerce email employment environment facebook food government grid high-definition hottub infodelivery infotech intel internet interview ipod isp japan kindle lhc library malware marketing mit moonfruit news onlineshopping piracy piratebay pope porn program questions r&d religion remoteworking research retail security sex shopping simple skype smallbusiness smb sms socialmedia socialnetworking software softwareengineer spam speed spending startrek statistics stocks study stumbleupon survey tabletpc technology touch-screen touchscreen twitter uk videoinprint voips web webdeveloper windows words





