User forums > Help

permisson error and homepage resetting

<< < (5/8) > >>

stahta01:
I am going with user error in the program till I rule it out.

So, post the code and full re-build of the project.

Note: The others on this site; might recall issues for the old 10.05 release; but, 2 years is too long for me to remember a bug like this.

Tim S.

epaul:

--- Quote from: stahta01 on May 31, 2012, 01:43:03 am ---
--- Quote from: epaul on May 31, 2012, 01:37:30 am ---"The default perspective of code blocks has changed, do you want to save this new layout?"

--- End quote ---

This happens every time I adjust a window in Code::Blocks.

It is very unlikely the sf server is the problem; but, it is possible.

Turn on FULL Compiler Logging to see if it is a bad code/compiler/project issue.
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

Also, Post the code you are trying to compile.

Tim S.

--- End quote ---

the code is

#include <iostream>

using namespace std;

int main()
{

cout<<"hello"<<endl;

return 0;
}

I turned on full compiler and I am not sure what to look for.

Here is what the build log came up with

mingw32-g++.exe  -o "C:\Users\Owner\Desktop\CSC code\test.exe" "C:\Users\Owner\Desktop\CSC code\test.o"  
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: cannot open output file C:\Users\Owner\Desktop\CSC code\test.exe: Permission denied
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 5 seconds)
1 errors, 0 warnings

stahta01:
Do a re-build NOT a build and past the build log from that.

Also, do it in a legal to use folder NOT the desktop!

Tim S.

epaul:

--- Quote from: stahta01 on May 31, 2012, 01:59:49 am ---Do a re-build NOT a build and past the build log from that.

Also, do it in a legal to use folder NOT the desktop!

Tim S.

--- End quote ---

To get a better view here is what I will do.

Using the same code I made a new testtwo.cpp

First build log (from a fresh new file):

mingw32-g++.exe    -c "C:\Users\Owner\Desktop\CSC code\testtwo.cpp" -o "C:\Users\Owner\Desktop\CSC code\testtwo.o"
mingw32-g++.exe  -o "C:\Users\Owner\Desktop\CSC code\testtwo.exe" "C:\Users\Owner\Desktop\CSC code\testtwo.o"  
Process terminated with status 0 (0 minutes, 9 seconds)
0 errors, 0 warnings

Ran program:

Didnt let me....said it had not been bulit yet do you want to build now?

Clicked yes

Build log from there:

mingw32-g++.exe    -c "C:\Users\Owner\Desktop\CSC code\testtwo.cpp" -o "C:\Users\Owner\Desktop\CSC code\testtwo.o"
mingw32-g++.exe  -o "C:\Users\Owner\Desktop\CSC code\testtwo.exe" "C:\Users\Owner\Desktop\CSC code\testtwo.o"  
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: cannot open output file C:\Users\Owner\Desktop\CSC code\testtwo.exe: Permission denied
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings
 
And here is my code as before:

#include <iostream>

using namespace std;

int main()
{

cout<<"hello"<<endl;

return 0;
}

EDIT: Missed your last minute edit there....what do you mean legal folder? I have a CSC folder that is on my desktop that I store my code in...what do you mean by legal folder?

stahta01:
I have TOLD you twice DO NOT use the desktop to build the project.

A legal folder is one that is is safe to do programming in.

The C:\ IS NOT LEGAL.
The C:\program files is NOT legal.

Try something like "C:\Users\username\Documents\CB-Folder"

Tim S.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version