News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Example not compiling: getini

Started by Titan, July 09, 2005, 07:16:59 AM

Previous topic - Next topic

Titan

I get this error when I go to compile the getini example.  I have the latest service pack installed too. :(
Quote
Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997.  All rights reserve

Assembling: getini.asm
getini.asm(120) : error A2006: undefined symbol : readline
linein$(1): Macro Called From
  getini.asm(120): Main Line Code
getini.asm(123) : error A2006: undefined symbol : readline
linein$(1): Macro Called From
  getini.asm(123): Main Line Code
getini.asm(126) : error A2006: undefined symbol : readline
linein$(1): Macro Called From
  getini.asm(126): Main Line Code
getini.asm(129) : error A2006: undefined symbol : readline
linein$(1): Macro Called From
  getini.asm(129): Main Line Code
getini.asm(132) : error A2006: undefined symbol : readline
linein$(1): Macro Called From
  getini.asm(132): Main Line Code
getini.asm(149) : error A2006: undefined symbol : writeline
lineout$(1): Macro Called From
  getini.asm(149): Main Line Code
getini.asm(152) : error A2006: undefined symbol : writeline
lineout$(1): Macro Called From
  getini.asm(152): Main Line Code
getini.asm(155) : error A2006: undefined symbol : writeline
lineout$(1): Macro Called From
  getini.asm(155): Main Line Code
getini.asm(158) : error A2006: undefined symbol : writeline
lineout$(1): Macro Called From
  getini.asm(158): Main Line Code
getini.asm(161) : error A2006: undefined symbol : writeline
lineout$(1): Macro Called From
  getini.asm(161): Main Line Code

Vortex

It looks like that you are missing somethings to build your project, can you post your commandline parameters and your source code?

Titan

I'm using "makeit.bat" to build it.  getini is an example that comes with the new service pack.  It's in: C:\masm32\exampl11\getini.

MichaelW

I have no problems building the example. I can trigger similar errors by commenting out the line:

include \masm32\include\masm32.inc


And I get:

Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997.  All rights reserved.

Assembling: getini.asm
getini.asm(114) : error A2006: undefined symbol : read_disk_file
InputFile(12): Macro Called From
  getini.asm(114): Main Line Code
getini.asm(120) : error A2006: undefined symbol : readline
linein$(1): Macro Called From
  getini.asm(120): Main Line Code
getini.asm(123) : error A2006: undefined symbol : readline
linein$(1): Macro Called From
  getini.asm(123): Main Line Code
getini.asm(126) : error A2006: undefined symbol : readline
linein$(1): Macro Called From
  getini.asm(126): Main Line Code
getini.asm(129) : error A2006: undefined symbol : readline
linein$(1): Macro Called From
  getini.asm(129): Main Line Code
getini.asm(132) : error A2006: undefined symbol : readline
linein$(1): Macro Called From
  getini.asm(132): Main Line Code
getini.asm(149) : error A2006: undefined symbol : writeline
lineout$(1): Macro Called From
  getini.asm(149): Main Line Code
getini.asm(152) : error A2006: undefined symbol : writeline
lineout$(1): Macro Called From
  getini.asm(152): Main Line Code
getini.asm(155) : error A2006: undefined symbol : writeline
lineout$(1): Macro Called From
  getini.asm(155): Main Line Code
getini.asm(158) : error A2006: undefined symbol : writeline
lineout$(1): Macro Called From
  getini.asm(158): Main Line Code
getini.asm(161) : error A2006: undefined symbol : writeline
lineout$(1): Macro Called From
  getini.asm(161): Main Line Code
getini.asm(163) : error A2006: undefined symbol : szLen
len(1): Macro Called From
  OutputFile(1): Macro Called From
   getini.asm(163): Main Line Code
getini.asm(163) : error A2006: undefined symbol : write_disk_file
OutputFile(1): Macro Called From
  getini.asm(163): Main Line Code
_
Assembly Error


Perhaps something in the SP installation went astray. Can you build other examples OK?
eschew obfuscation

hutch--

Titan,

make sure you copied the laest macro file to the macro directory. Then make sure you are including bot the masm32 libray and include file.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Titan

Yep, I applied the service pack.  And I'm using your exact example!  So yeah, I got all the includes in there.:D

And MichaelW, I did try more examples and I found another one that couldn't compile.  This is msort in C:\masm32\exampl11\sorts\msort.
Quote
Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997.  All rights reserved.

Assembling: msort.asm
msort.asm(242) : error A2006: undefined symbol : readline
linein$(1): Macro Called From
  msort.asm(242): Main Line Code
msort.asm(244) : error A2006: undefined symbol : writeline
lineout$(1): Macro Called From
  msort.asm(244): Main Line Code
msort.asm(265) : error A2006: undefined symbol : assort
msort.asm(267) : error A2006: undefined symbol : dssort
msort.asm(272) : error A2006: undefined symbol : StdErr
msort.asm(273) : error A2006: undefined symbol : StdErr
msort.asm(276) : error A2006: undefined symbol : StdErr
msort.asm(277) : error A2006: undefined symbol : StdErr
msort.asm(289) : error A2006: undefined symbol : StdErr
msort.asm(290) : error A2006: undefined symbol : StdErr
msort.asm(291) : error A2006: undefined symbol : StdErr
msort.asm(292) : error A2006: undefined symbol : StdErr
_
Assembly Error
Press any key to continue . . .
I have the latest service pack, however these functions(readline and writeline) are not in my MASM32.inc.

Edit: Problem solved!
Quote
include \masm32\m32lib\masm32.inc
includelib \masm32\m32lib\masm32.lib
That is where my latest masm32 is.  It's all working now. :)  And thank you for the wonderful example, it makes reading/writing files very easy. :U