clion not running

whenever I try to run c program(as simple as printing hello world) it doesnt run and says

Error running 'Build All': Cannot run program "C:\Users\dav\CLionProjects\ex0\CMakeLists.txt" (in directory "C:\Users\dav\CLionProjects\ex0"): CreateProcess error=193, %1 is not a valid Win32 application

what should I do

 

7 comments
Comment actions Permalink

the link itself isnt working (the one you sent)

 

0
Comment actions Permalink

That is strange, on my side it works in every browser. In CLion please try Help | Help. Does it work?

Have you installed MinGW or Cygwin? Please attach the screenshot of File | Settings | Build, Execution, Deployment | Toolchains.

0
Comment actions Permalink

Hi there,i have the same issue....is not a valid Win32 application. What should i do now? i installed the MinGW set it as defualt but still not working.

0
Comment actions Permalink

@V Peter18, please close your project (File | Close project), on the "Welcome screen" choose New project, then choose C++ Executable, click Create. Try building and running this project (don't change anything in the project). Does this project work?

0
Comment actions Permalink

Hi!

Same error code here, I've created the new project and it worked, changed to my project and it don't.

CMake build works, running it don't.

But in my case he points the problem to a static library autogenerated by CMake saying

Cannot run program "[the_path]\cmake-build-debug\lib[the_name_of_my_project].a"  (in directory "[the_path]\cmake-build-debug") CreateProcess error=193, %1
0
Comment actions Permalink

738712 it's not possible to run libraries.

0

Please sign in to leave a comment.