www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - error in compiling,...

↑ ↓ ← kuldip <kuldip_member pathlink.com> writes:
Hi 

I just installed DM on my pc in order to use the Outportb and inport to make a
driver for the serial port. I wanted to just compile and execute the "hello.c"
program. When I try to compile that I am getting the error as "Fatal error:
error writing output file 'hello.obj'". ---- errorlevel 1

Could you help me?

thanks
kuldip


the code for hello.c is:

#include <stdio.h>

int main()
{
printf("hello");
return 0;
}

kuldip
Dec 14 2005
↑ ↓ → Scott Michel <scottm aero.org> writes:
kuldip wrote:
 Hi 
 
 I just installed DM on my pc in order to use the Outportb and inport to make a
 driver for the serial port. I wanted to just compile and execute the "hello.c"
 program. When I try to compile that I am getting the error as "Fatal error:
 error writing output file 'hello.obj'". ---- errorlevel 1

This usually indicates that you can't write to the directory in which you're storing the .obj file.
Dec 14 2005