IonicWind Software

IWBasic => General Questions => Topic started by: Jim Scott on September 04, 2013, 09:52:35 AM

Title: Difficulty Compiling Old Project
Post by: Jim Scott on September 04, 2013, 09:52:35 AM
I am having trouble compiling a project that I built back in 2007.  Back then, I was using EB ver 1.59.  I recently installed version 1.737 from the website.

This project consists of one main program file, one Include file (DDoc.inc) and five resource files (3 scalable images and 2 icons).

I get the following when I try to Compile the project;

Begin Message From Compiler
   Compiling...
   ddoc.inc
   nasm: error: more than one input file specified
   type `nasm -h' for help
   Error(s) in assembling "E:\Check-In Package Program\ddoc.a"
End Message From Compiler

I get the following when I try to "Rebuild All"'

Begin Message From Compiler
   Compiling Resources...
   No Errors

   Compiling...
   Check-In Package Program.eba
   nasm: error: more than one input file specified
   type `nasm -h' for help
   Error(s) in assembling "E:\Check-In Package Program\Check-In Package Program.a"
   ddoc.inc
   nasm: error: more than one input file specified
   type `nasm -h' for help
   Error(s) in assembling "E:\Check-In Package Program\ddoc.a"
   Build Failed
End Message From Compiler

If I take the same file and compile it as a single file build it compiles and runs fine without the DDoc features.

I have a feeling it is something simple....

Title: Re: Difficulty Compiling Old Project
Post by: LarryMc on September 04, 2013, 10:34:03 AM
just guessing since I don't have any code to look at.
Open  Project/Options and then click the Advanced tab and clear the Assembler Options window
If that doesn't work then delete the project(ebp) file and recreate it.
Title: Re: Difficulty Compiling Old Project
Post by: Jim Scott on September 04, 2013, 03:00:16 PM
Hey Larry,

Clearing the Assembler Options made it build and run alright (It had a 1 or an l in the window).  It just doesn't seem to execute any of the DDoc32.dll code.  The GUI comes up and all the menus and buttons work.  No errors.  Just not the printing functions.

The compiler output is this;

Begin Compiler Output

   Compiling Resources...
   No Errors

   Compiling...
   Check-In Package Program.eba
   ddoc.inc

   Linking...
   Emergence Linker v1.12 Copyright © 2009 Ionic Wind Software
   Generating Check-In_Package_Program.exe
   Build completed

End Compiler Output

Thanks again,

Jim
Title: Re: Difficulty Compiling Old Project
Post by: LarryMc on September 04, 2013, 03:37:12 PM
I need to see your .eba source file and any *.inc it might be calling other than "windows.inc".
If you don't want to post it where everyone can see it then email me a copy.

Otherwise I can't be of much help.
Title: Re: Difficulty Compiling Old Project
Post by: LarryMc on September 04, 2013, 05:18:32 PM
I also need a sample JCP file to test printing.
In meantime is there a ddoc32.lib file in your EBDev\libs folder?
Title: Re: Difficulty Compiling Old Project
Post by: LarryMc on September 04, 2013, 07:35:38 PM
As best as I can tell is that there is no selected printer.
I can't be absolutely sure since my printer is connected across the lan and not connected directly to my printer.
But I can't see where you select/set a printer, but I'm not that familiar with DDOC hardly at all.

My suggestion would be to create the smallest test program you can just to get your printer to print something using DDOC.

Sorry I couldn't help more.
Title: Re: Difficulty Compiling Old Project
Post by: Jim Scott on September 05, 2013, 09:22:37 AM
This note is a follow-up on this thread.  Nobody likes untidy threads.

Thanks to Larry (he spent at least five hours on my problem) for figuring out that I had different versions of ddoc installed.  This reminds me that I need to pay more attention and do a better job of documenting my own code.

You're a good guy Larry,

Jim
Title: Re: Difficulty Compiling Old Project
Post by: LarryMc on September 05, 2013, 11:22:57 AM
Glad I was able to finally help.