Menu

#510 Having problem to create a new project

Undefined
invalid
nobody
None
Undefined
2018-09-19
2017-05-23
No

Hello Forum, Im pretty new to this forum. My major challenge is that Im having problem to create a new project from the codeblock. Also , I can't build and run the existing project file because it always return error "ld.exe||cannot open output file C:\Program Files (x86)\CodeBlocks\MinGW\mingw32\bin\test2cpp\main.exe Permission denied|​"
||error: ld returned 1 exit status|​

Please, kindly help me how to go about it because I'm just learning this language from the scratch

Discussion

  • bluehazzard

    bluehazzard - 2017-05-23

    1) This site is a bug tracker, and the purpose of a bug tracker is to track bugs. You have a support question. The better place to ask this kind of questions is http://forums.codeblocks.org/
    2) The error tells you exactly what goes wrong :

    cannot open output file C:\Program Files (x86)\CodeBlocks\MinGW\mingw32\bin\test2cpp\main.exe Permission denied

    The linker can not open the output file because he has not the permission to do so. So fix this and all will work...

    C:\Program Files (x86)\CodeBlocks\MinGW\mingw32\bin is a awful bad place to create your own projects. You won't have write permission there. Use your home directory to create projects... Also is it a bad idea to use spaces or non ASCII characters in your project path. It should work, but it can create wired problems..

     
  • Teodor Petrov

    Teodor Petrov - 2017-05-24
    • status: open --> invalid
     
  • elias cardoso gomes

    you have to save the code again after each modification with a new name as for example arq1.ce at once arq2.c to be able to compile and run, the problem does not have any relation with the anti-virus so you can keep it active, the project folders are for to save the codes after each modification with a new name to keep the historical evolution of the project, so the IDE does not allow to save the file after modification overwriting an existing file

     

Log in to post a comment.

Auth0 Logo