c++ header files
Just realized this should have been in a different area of Development and Programming
I am trying to do some c++ programming. I had a problem and posted here. This solved the problem I had but it was pointed out that I was using the wrong header files. e.g
I had #include <time.h> where I should have had #include <ctime.h>
and several others.
I am a real beginner with c generally and more so with c++
I have been trying to use SDL as well so I guess I have been trying to run before I can walk so I decided to potter around with some simple coding first but I am stuck.
Problem is as follows:
worked and the program would run but that was with the wrong headers so altering the includes to have ctime.h and cstdlib.h
g++ -o graph6 graph6c.cpp `pkg-config --cflags --libs sdl`
caused the compile to fail as the headers could not be found.
I do have g++ at /usr/bin but do not have the headers anywhere.
I ran updatedb as root and then locate ctime.h
but it is not on my system.
Running 12.04 with all updates.
I have tried to find them to install them through the package manager but cannot seem to do so.
Can someone please explain how I can overcome this problem please?
Last edited by linuxonbute; January 14th, 2013 at 04:29 PM.
Running 13.10 on my HP Pavilion g6 3 Gig Ram 320 Gig Disc