Little problem with makefile...

Need help with C, C++, perl, python, etc?

Little problem with makefile...

Postby MoonInside » 2006-06-09 18:05

Hi, i'm new linux user and i'm tring to create a makefile to simple modular program composed of 4 files:

Create_Process.cpp
Name.cpp
Shell.cpp
Shell.h


My makefile is:

all: nome shell

nome: nome.cpp
g++ -o nome nome.cpp

shell: shell.h shell.cpp crea_processo.cpp
g++ -c -o shell.o shell.cpp
g++ -c -o crea_processo.o crea_processo.cpp
g++ -o shell shell.o crea_processo.o

clean :
rm -f *.o
rm -f nome
rm -f shell


When i run make command the shell show me this message:

make: *** No rule to make target `nome.cpp', needed by `nome'. Stop
.
[/i]
MoonInside
 
Posts: 6
Joined: 2006-06-08 19:34
Location: Italia Napoli

Postby ajdlinux » 2006-06-09 23:26

Well, for a start the files you mention need to actually exist.

I suppose that the files are actually in Spanish or something and you have just translated them here?
ajdlinux
 
Posts: 2480
Joined: 2006-04-23 09:37
Location: Port Macquarie, NSW, Australia


Return to Programming

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable