News:

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

Mixed programming in masm32

Started by pps, March 02, 2011, 09:13:29 AM

Previous topic - Next topic

pps

I don't have an intel folder, neither amd32,, just 2 folders.
What cl do you use. can you give it to me?

Vortex

Quote from: pps on April 23, 2011, 06:32:00 PM
I installed pelles compiler, lunched povars32.bat and I tried the program. Assambling works fine but when i try to compile Mixed.c i have the error : Can't finde the include file <stdio.h>. What should I do?

Hi pps,

Can you build the sample projects coming with the Pelles C installation?

pps

Yes, I made a simple program, i included stdio.h and it woks. I have my project for masm on desktop and pelles c, on c\program files.

Vortex

Hi pps,

Did you try to rebuild the project with the asm module?

pps

yes. i even deleted the obj and exe file. i started to run the comands  one by one from the bat file in cmd. When i use masm, it works, and i get the .obj file, then then i call pocc pocc /Ze /Zx /Ot Mixed.c i het that error. i think it must be from my computer because what you did works fine. i Don;t uderstand where i am wrong.

pps

Is anyone having any ideas please?

Vortex

After running povars32.bat, can you post here the value of the environment variable PATH?

Type path in the command prompt. You should see something like this one :

D:\PellesC>path
PATH=D:\PellesC\Bin;C:\WINDOWS\system32;...


My Pelles C installation is located in the D:\PellesC directory.

pps

I tapped but I got something wrong....

pps

I can't understand why i don't get the path of the bin folder like in your example....

dedndave

you can add a folder to the path inside the assembly batch file
if you do it that way, it will only stay in there as long as that console window is open

in the batch file...
set path=D:\PellesC\bin;%PATH%

otherwise, you can add it permanently by...

Control Panel - System icon (or right-click on My Computer - Properties)
Advanced tab
Environment Variables button
use the upper window for the current windows user only or use the lower window to apply for all windows logon users
highlight the Path variable, then click the Edit button (or New button if it does not exist)

usually, the path variable is too long to fit in the box
i like to copy the entire string into a temporary text file, edit it, then paste it back into the box
folders in the path variable are seperated by semicolons