This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc makefile hello world (iostream issue)


hi

I'm trying to code hello world in GCC, but whilst I get my simple makefile
correctly, the problem comes when I try to use <iostream> or even my own
headerfiles defined outside the folder with my main .cpp file.

so any help?

How should I alter the makefile below to accommodate <iostream> or any
header files out side my main.cpp file folder?
[output]all: hello
	-std=c++11

objects = hello.o

edit: $(objects)
	cc -o edit $(objects)

$(objects) : hello.h
hello.o : hello.h

.PHONY : clean
clean :
	-rm edit $(objects)[/output]

-- 
View this message in context: http://old.nabble.com/gcc-makefile-hello-world--%28iostream-issue%29-tp34045781p34045781.html
Sent from the gcc - libstdc++ mailing list archive at Nabble.com.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]