Vim and C++ with SDL

Okay, so I've just started using Vim with C++. I'm coming from using Java with an IDE so this 'no IDE' thing is all new to me. I've figured out how to use make files to build my projects and I just discovered SDL and I want to start working with it. How do I use it with no 'file->include->library' like option you get in an IDE? All the tutorials I find tell you how to use it with an IDE, but I don't want to use an IDE because I like Vim and makefiles much better. If someone could explain what I need to do to include libraries in my projects that would be great.
Last edited on
It will look for include files automatically in the default directories. Add extra paths using I (uppercase 'i').

To link to a library, use -l (Lowercase 'L') and the libraries name. The linker will look for libNAME.a in all of the default paths. You can give it extra paths using -L.

Also, shouldn't this be in the Linux section?
Yes it should, I didn't see there was a Linux section. I'll move it there. Thanks for the help!
Where do I put this stuff in my make file and how do I format it though?
By instance
1
2
3
4
libraries = $(addprefix -l,GL GLU glut)

$(project) : $(objects)
	$(cxx) $(libraries) $(objects) -o $@




¿What makes it a 'linux question'?
Topic archived. No new replies allowed.