Mail Archives: djgpp/1998/01/23/22:17:33
Angel Ryan wrote:
> Also, for some reason now, when I try to use the run command w/ a
> source code, I get this strange message in a pop-up information window
> in RHIDE:
>
> Program exit code: 13 (0x000d)
using
void main()
aren't you?
see the comp.lang.c.faq at
http://www.cis.ohio-state.edu/hypertext/faq/bngusenet/comp/lang/c/top.html
11.12: Can I declare main() as void, to shut off these annoying "main
returns no value" messages?
11.13: But what about main's third argument, envp?
11.14: I believe that declaring void main() can't fail, since I'm
calling exit() instead of returning.
11.15: The book I've been using always uses void main().
11.16: Is exit(status) truly equivalent to returning the same status
from main()?
as for your other question, go to the directory you want to create your
project e.g.
c:\windows> md \projects\my_new_project
c:\windows> cd \projects\my_new_project
c:\projects\my_new_project> md src
c:\projects\my_new_project> md obj
c:\projects\my_new_project> rhide my_new_project
and then set up the source, object etc paths.
when you double click on a short cut you set up for rhide, it always
starts in the directory that is specified as the working directory in
the properties sheet.
if you don't like the command line stuff, get the "Command Prompt Here"
powertoy from www.microsoft.com. do the above using explorer, and then
open a command prompt in the my_new_project folder, and start rhide
using
c:\projects\my_new_project> rhide my_new_project
--
----------------------------------------------------------------------
A. Sinan Unur
Department of Policy Analysis and Management, College of Human Ecology,
Cornell University, Ithaca, NY 14853, USA
mailto:sinan DOT unur AT cornell DOT edu
http://www.people.cornell.edu/pages/asu1/
- Raw text -