See the top rated post in this thread. Click here

Results 1 to 9 of 9

Thread: Compiling Error: "; error: bad argument value: non-negative: -1"

  1. #1
    Member
    Join Date
    2005-02
    Posts
    4
    Login to Give a bone
    0

    Question Compiling Error: "; error: bad argument value: non-negative: -1"

    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

  2. #2
    AUGI Addict kennet.sjoberg's Avatar
    Join Date
    2002-05
    Posts
    1,707
    Login to Give a bone
    0

    Default Re: Compiling Error: "; error: bad argument value: non-negative: -1"

    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

  3. #3
    Member
    Join Date
    2005-02
    Posts
    4
    Login to Give a bone
    0

    Default Re: Compiling Error: "; error: bad argument value: non-negative: -1"

    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

  4. #4
    100 Club
    Join Date
    2000-12
    Posts
    126
    Login to Give a bone
    0

    Default Re: Compiling Error: "; error: bad argument value: non-negative: -1"

    Sounds like in index going out of range. You would probably get more help if you posted the code, yes.

  5. #5
    AUGI Addict kennet.sjoberg's Avatar
    Join Date
    2002-05
    Posts
    1,707
    Login to Give a bone
    0

    Default Re: Compiling Error: "; error: bad argument value: non-negative: -1"

    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

  6. #6
    Member
    Join Date
    2005-02
    Posts
    4
    Login to Give a bone
    0

    Thumbs down Re: Compiling Error: "; error: bad argument value: non-negative: -1"

    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
    Attached Files Attached Files

  7. #7
    AUGI Addict kennet.sjoberg's Avatar
    Join Date
    2002-05
    Posts
    1,707
    Login to Give a bone
    1

    Default Re: Compiling Error: "; error: bad argument value: non-negative: -1"

    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.

  8. #8
    Member
    Join Date
    2005-02
    Posts
    4
    Login to Give a bone
    0

    Thumbs up Re: Compiling Error: "; error: bad argument value: non-negative: -1"

    Bingo! Unbelievable that those odd things still can make one burn his (poor, lazy) brain.

    Thanks a lot.

    Luciano
    Last edited by larrezze; 2005-02-11 at 02:56 PM.

  9. #9
    AUGI Addict kennet.sjoberg's Avatar
    Join Date
    2002-05
    Posts
    1,707
    Login to Give a bone
    0

    Default Re: Compiling Error: "; error: bad argument value: non-negative: -1"

    Thank You Mike !

    Happy Computing !

    kennet

Similar Threads

  1. Replies: 1
    Last Post: 2013-12-14, 07:15 PM
  2. Error: bad argument type: FILE "r"
    By shell2712 in forum AutoLISP
    Replies: 0
    Last Post: 2013-09-04, 08:29 PM
  3. Replies: 6
    Last Post: 2006-12-07, 11:42 PM
  4. Replies: 7
    Last Post: 2006-07-24, 08:57 AM
  5. Replies: 1
    Last Post: 2005-11-15, 07:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •