User forums > General (but related to Code::Blocks)

windows 7 "permission denied" problem

<< < (4/7) > >>

websnake:
ok case is not closed i am getting those error again i don't know why :shock: :shock: :shock:.

it was working fine tomorrow and now i am back where i was before :x :x  :x

zabzonk:
> ok case is not closed i am getting those error again

You still haven't said whether or not  you get the same errors when you compile from the command line. Until you clarify this, I can't see you getting much help here.

websnake:
ok i never tried compiling using command line so can any one tell me how to do it (small syntax example will be fine).


Alpha:
First ensure mingw\bin is in your path
path C:\mingw\bin;%path%

Compile and link in single step
g++ myFile1.cpp myFile2.cpp -o outputExecutable

Compile, then link
g++ -c myFile1.cpp myFile2.cpp
g++ myFile1.o myFile2.o -o outputExecutable

Use flags
g++ -Wall -DmyDefine -IC:\my\include\path -c myFile1.cpp myFile2.cpp
g++ -LC:\my\library\path -lmyLibrary myFile1.o myFile2.o -o outputExecutable

To see exactly how your program is built, goto Settings->Compiler and debugger...->Build options (tab) and check Save build log and Always output the full command line.  Code::Blocks will now tell you exactly what it is sending the compiler (it might say mingw32-g++.exe, but that is essentially the same as g++).

websnake:
so i tried to compile my file main.cpp which is on my G drive i typed this on command line.


--- Code: ---G:\g++ main.cpp -o main.exe
--- End code ---

but there was no output file on the drive there was only one file main.cpp and nothing else on my G drive.

am i doing something wrong?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version