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

LLVM Clang 3.8.0 on CodeBlocks - Strange errors

<< < (2/5) > >>

oBFusCATed:
First verify that the compiler works. This is done by compiling something in a cmd window.
Then we can tell you how to make it work inside codeblocks.

devhobby:

--- Quote from: oBFusCATed on July 02, 2016, 08:18:49 pm ---First verify that the compiler works. This is done by compiling something in a cmd window.
Then we can tell you how to make it work inside codeblocks.

--- End quote ---

That's the point!

I moved to clang's folder and launched this command

clang++ -std=c++14 -Wall -pedantic-errors -O2 -Wall  C:\Users\Michael\Desktop\testClang\main.cpp  && ./a.out

and it gave me the same errors I got in codeblocks (see the post above). So I think it's a compiler problem.


But it's strange since I downloaded it from the official LLVM site.

stahta01:

--- Quote from: oBFusCATed on July 02, 2016, 08:18:49 pm ---First verify that the compiler works. This is done by compiling something in a cmd window.
Then we can tell you how to make it work inside codeblocks.

--- End quote ---

He already posted that it errors out on the command line. It looks like a corrupted compiler installation.

Me, I would uninstall the compiler and then re-install it.
And, I would NOT cut and paste the compiler folder!!!!!!

Tim S.

devhobby:

--- Quote from: stahta01 on July 02, 2016, 08:44:19 pm ---
--- Quote from: oBFusCATed on July 02, 2016, 08:18:49 pm ---First verify that the compiler works. This is done by compiling something in a cmd window.
Then we can tell you how to make it work inside codeblocks.

--- End quote ---

He already posted that it errors out on the command line. It looks like a corrupted compiler installation.

Me, I would uninstall the compiler and then re-install it.
And, I would NOT cut and paste the compiler folder!!!!!!


--- End quote ---

I've uninstalled and re-installed but this time the 3.7 version.

Now the only error I get is fatal error: 'iostream' file not found

Both in CodeBlocks and via command line

stahta01:
Post the full re-build log.

I suggest reading it before posting because you likely forgot to name the source file with the extension ".cpp".

Tim S.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version