By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,116 Members | 1,282 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,116 IT Pros & Developers. It's quick & easy.

make error / g++

P: n/a
I get this error when running a make file...

$ make -f TestMain.mak
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
g++ -o TestMain TestMain.o M.o S.o N.o
G__~1: M.o: No such file or directory
G__~1: S.o: No such file or directory
G__~1: N.o: No such file or directory

** error 1 ** deleting TestMain

the make file is...

TestMain : TestMain.o
g++ -o TestMain TestMain.o M.o S.o N.o
TestMain.o : TestMain.cpp
g++ -c TestMain.cpp
N.o : N.cpp
g++ -c N.cpp
M.o : M.cpp
g++ -c M.cpp
S.o : S.cpp
g++ -c S.cpp

Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

<sa************@hotmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
I get this error when running a make file...

$ make -f TestMain.mak
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
g++ -o TestMain TestMain.o M.o S.o N.o
G__~1: M.o: No such file or directory
G__~1: S.o: No such file or directory
G__~1: N.o: No such file or directory

** error 1 ** deleting TestMain


You'll have to ask in a Borland newsgroup. Problems with specific
compilers, especially as they relate to projects/makefiles/etc. are not
related to the C++ language, and are off-topic here.

-Howard
Jul 23 '05 #2

P: n/a


sa************@hotmail.com wrote:
I get this error when running a make file...

$ make -f TestMain.mak
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
g++ -o TestMain TestMain.o M.o S.o N.o
G__~1: M.o: No such file or directory
G__~1: S.o: No such file or directory
G__~1: N.o: No such file or directory

** error 1 ** deleting TestMain

the make file is...

TestMain : TestMain.o
g++ -o TestMain TestMain.o M.o S.o N.o
TestMain.o : TestMain.cpp
g++ -c TestMain.cpp
N.o : N.cpp
g++ -c N.cpp
M.o : M.cpp
g++ -c M.cpp
S.o : S.cpp
g++ -c S.cpp


Off-topic though
Read the documentation for make. In your particular case the problem
are
the dependencies for the target TestMain, you don't specify it needs
M.o N.o and S.o.

regards, Stephan

Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.