"Hello World" wont run (yes, im new to this ^_^)

Started by Mr.Clean, November 03, 2010, 08:39:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mr.Clean

when i try to this hello word code:

[code language="bennu"]import "mod_say"

Process Main()
Begin
   say("Hello World");
End[/code]

i get the following message:

QuoteToo many files specified

> Terminated with exit code 0.

instead of generating the "other" file for the interpreter to read (i think its called the Bytecode)



Mr.Clean


josebita

Please make sure the compiler options are set correctly. If that doesn't help, try to compile your code by hand first (bgdc main.prg from the windows console).

handsource-dyko

I recommend to compile it manually, and to create a batch or shell script file that does it for you.
It always works for me. I always create two different batch files, one that compiles and runs, and
the other to created a stubbed exe file.


Mr.Clean

#5
Quote from: josebita on November 03, 2010, 08:54:43 AM
Please make sure the compiler options are set correctly. If that doesn't help, try to compile your code by hand first (bgdc main.prg from the windows console).

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\user>C:\Bennu\Bin\bgdc.exe bgdc test.prg
BGDC 1.0.0 (Aug 11 2010 07:46:29)
Copyright ⌐ 2006-2010 SplinterGU (Fenix/BennuGD)
Copyright ⌐ 2002-2006 Fenix Team (Fenix)
Copyright ⌐ 1999-2002 JosΘ Luis Cebrißn Pagⁿe (Fenix)
Bennu Game Development comes with ABSOLUTELY NO WARRANTY;
see COPYING for details

Too many files specified

C:\Documents and Settings\user>

EugeneP

C:\Documents and Settings\user>C:\Bennu\Bin\bgdc.exe test.prg

Mr.Clean

#7
Quote from: EugeneP on November 03, 2010, 09:11:06 AM
C:\Documents and Settings\user>C:\Bennu\Bin\bgdc.exe test.prg

did that after i copy/pasted test.prg into the bgdc.exe directory and got this:

C:\Documents and Settings\user\test.prg:0: error: test.prg: file not found (EO
F)

could my pc be corrupted?

EugeneP

Your PC is OK, 99.9% chance.
You should add to PATH folders containing mod_say.dll or copy all Bennu's dlls to folder containing bgdc.exe

josebita

Also, run that command in the directory where test.prg is located (or better, try to configure crinsom editor options better :)).

Mr.Clean

in system variables, does PATH have to be small?

EugeneP

Quote from: Mr.Clean on November 03, 2010, 11:43:50 AM
in system variables, does PATH have to be small?
Windows environment variables values can be very long, AFAIK. No problems expected here.

Windgate

You can't compile that? :o

Dude, just install Bennupack, use its Notepad++ as editor and press F6 to build and run.

No environment vars, no relative paths... Just work.
Iván García Subero. Programador, profesor de informática, monitor de actividades culturales y presidente de TRINIT Asociación de Informáticos de Zaragoza. http://trinit.es

handsource-dyko

I recommend to copy your bennu installation to your project directory.
This way you don't have to worry about the path.

What I always do, is I create a folder my project, and put a copy of bennu's excutable
files and dll's in it. Also, I put a shortcut to cmd.exe in this folder, and change it's
begin in folder properties to the path of the project folder. No, you can type bdgc myprog.prg
and then bgdi myprog.dcb without having to type the entire path. (Wich is annoying especially on
case sensitive systems like linux, where I use a similair fashion, therefore I recommend to only use
lowercase filenames, so you don't have get annoyed by the caps-lock key).



DCelso

Quote from: Mr.Clean on November 03, 2010, 09:08:45 AM
Quote from: josebita on November 03, 2010, 08:54:43 AM
Please make sure the compiler options are set correctly. If that doesn't help, try to compile your code by hand first (bgdc main.prg from the windows console).

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\user>C:\Bennu\Bin\bgdc.exe bgdc test.prg
BGDC 1.0.0 (Aug 11 2010 07:46:29)
Copyright ⌐ 2006-2010 SplinterGU (Fenix/BennuGD)
Copyright ⌐ 2002-2006 Fenix Team (Fenix)
Copyright ⌐ 1999-2002 JosΘ Luis Cebrißn Pagⁿe (Fenix)
Bennu Game Development comes with ABSOLUTELY NO WARRANTY;
see COPYING for details

Too many files specified

C:\Documents and Settings\user>
the problem may be in the crimson editor configuration, the bolded word spare (or leave),
Monstruos Diabólicos

"A PAck of classic GAMEs For BennuGD" en desarrollo
http://code.google.com/p/apagame4be/