Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error in linking (MASM 6.11 I think)

Status
Not open for further replies.

JavaDude32

Programmer
Aug 25, 2001
180
US
I have an error that occurs during the linking of an .obj file with ml.exe. The error is that the file link.exe can not be found, however, I'm in the same directory as ml.exe and masm.exe. I'm thinking this has to do with environment variables but however, I do not know what exactly to set. I'm using the option of writing for Microsoft NT systems and I have Visual C++ 6.0 previously installed. I only did the first installation of MASM, but I'm hoping that included all necessary files for assembling and linking? Any help or tutorials on this would be very much appreciated since I do not possess a system manual and my instructors do not remember enough about assembly to help me. I'm sorry if this question has been answered before but I haven't seen it on this forum. Thanks in advance for any help anyone can offer.
 
as far as i remember, there should be smthng like setenv32.bat (?) in the VC Bin directory that is to set the variables. i also encountered "out of environment space" problem so check the varibales even if u have found and executed this stuff

hope this helps..
 
Well I didn't find a setenv32.bat in the VC98\Bin directory, however I did find a vcvars32.bat and I ran that. I no longer get the error about not finding link.exe but now I have acquired two new errors. I'm using masm to assemble the programs and then I issued the command:
link p04defin.obj and I received the following errors:

p04defin.obj : warning LNK4033: converting object format from OMF to COFF

p04defin.obj : fatal error LNK1190: invalid fixup found, type 0x0001

Does this mean I have an incompatiable linker or do I need to issue certain options for the linker or this there something else wrong that I don't have a clue about? Any further help would be appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top