PDA

View Full Version : Compiling Error: "; error: bad argument value: non-negative: -1"


larrezze
2005-02-10, 11:25 AM
Hi all,

I've been trying to compile a LSP file, without any success. I'd always get the following error when I select the LSP file to be compiled:

; error: bad argument value: non-negative: -1

Interesting: I can run the LSP normaly, get no error; can even create a project file + FAS. If the LSP works fine, why can I not compile it to a VLX file?

Thanks in advance for your help,

Luciano Arrezze

kennet.sjoberg
2005-02-10, 01:37 PM
Can this be a reason ?

"*.VLX file is a compiled set of one or more LSP and/or dialog control language (DCL) files. "

: ) Happy Computing !

kennet

larrezze
2005-02-10, 05:32 PM
Look,

My dumb descriptionI've two files: 1.lsp and 1.dcl and would like to make the 1.vlx file. Go to FILE -> MAKE APPLICATION -> NEW APPLICATION WIZARD. The way it goes:

Wizard Mode = Expert
App. Location: c:\mypath
App. Name: compiled.vlx
No separate Namespace
Select the LSP file: ***happens the error, VLISP shows the message Compiling Error: "; error: bad argument value: non-negative: -1"

Shall I send the source code?

Luciano Arrezze

stig.madsen
2005-02-10, 07:12 PM
Sounds like in index going out of range. You would probably get more help if you posted the code, yes.

kennet.sjoberg
2005-02-10, 07:28 PM
Try again ; )

File -> Make Application -> New Application Wizard...
(o) Expert [ Next> ]
Application Location [ Browse... ] to the map
Application Name MyProgram [ Next> ]
[v] Separate Namespace [ Next> ]
Select [Lisp source files [v] and push [ Add... ]
and select MyProgram.lsp
[ Next> ]
Select [DCL files [v] and push [ Add... ]
and select MyProgram.dcl
[ Next> ]
(o) Standard [ Next> ]
[v] Build Application [ Finish ]

: ) Happy Computing !

kennet

larrezze
2005-02-11, 12:34 PM
I've tried it, didn't work. I've attached the source code, so, if you'd have time you could perhaps find out what's happening. It's a **very** simple code, I'm just a beginner.

Luciano

kennet.sjoberg
2005-02-11, 02:02 PM
You know Luciano, we are still partly living in the MS-DOS world and it is a good thing to always use 8.3 file format and to not use special characters in file name.
Rename Your lisp and dcl file into 8.3 format
and change the line (setq dcl_id (load_dialog ". . . . in Your lisp file.

: ) Happy Compiling !

kennet

I have tried DL.lsp DL.dcl and (setq dcl_id (load_dialog "DL.dcl")) and it works.

larrezze
2005-02-11, 02:49 PM
Bingo! Unbelievable that those odd things still can make one burn his (poor, lazy) brain.

Thanks a lot.

Luciano

kennet.sjoberg
2005-02-15, 12:41 AM
Thank You Mike !

Happy Computing !

kennet