Miscellaneous > Programming & Networking

32 hour clock

<< < (5/9) > >>

Stryker:
It does NOT require a Makefile to be executed. You can add the parameter of a target file to compile, it will work with a single-file project (excluding #includes). I copied your source to test.cpp and then did 'make test' and it compiled just fine. I am aware that it is just a shortcut to the gcc goodies, but it gets the job done.

voidmain:
I know what "make" is, I've only been using it for 10+ years.  But what I said is exactly true, it's designed to manage projects.  Yes, you can give it a source file as a parameter and it will call the appropriate compiler (assuming it is set up correctly, which in Linux it is by default) but I maintain for someone just starting they should learn from the basic level on up. "make" is a great thing and you will definitely need it as you progress into larger programs but for someone who has never programmed they should know what the "compiler" is. I didn't mean to offend you by the way, if that is what I did.

Stryker:
I was offended at first, I thought you were trying to invalidate my post. It does have some value to it, and after you have the knowledge of how to compile things properly, then go ahead and use whatever method you like. I am just trying to show someone an easier route (easier is an opinion I know). But then again, I was reading and posting without sleep for 39 hours, I tend to take things the wrong way in such circumstances.

Calum:
you may as well write a 2 or 3 line makefile though if you have a few programs in the same folder that will require the same options, yes?

Kintaro:
M0R, You should get XINETD to host a time server on your webserver, but have it feed the output of this 32 hour time program to it instead of normal time.

It will have too be set first!

--- Code: ---
--- End code ---

Maybe we should make this a sourceforge project?

This one asks for the current time: (And does not work)

--- Code: ---
--- End code ---
It gives me
 
quote:gterm:[qb]
/tmp/cckFTqJM.o: In function `main':
/tmp/cckFTqJM.o(.text+0x40): undefined reference to `inputf'
/tmp/cckFTqJM.o(.text+0x5e): undefined reference to `inputf'
/tmp/cckFTqJM.o(.text+0x7c): undefined reference to `inputf'
/tmp/cckFTqJM.o(.text+0x9a): undefined reference to `inputf'
/tmp/cckFTqJM.o(.text+0xb8): undefined reference to `inputf'
collect2: ld returned 1 exit status[/qb
--- End quote ---


What do i do now (im used to iostream.h not stdio.h)

[ August 24, 2002: Message edited by: Ex Eleven / b0b ]

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version