User forums > Help

compiler issiues

<< < (3/3)

Willieham:
Sorry for the confusion Tim i appreciate you helping me like this.

I have installed codeblocks 13.12 on to two laptops. The first one is a hp Compaq 6910p which has Linux mint 18 Sarah which i am trying to get codeblocks to work on first as it will be a dedicated laptop for c ,c++, Python and Arduino programming. My main laptop is a HP 15 notebook PC which i am also using but for college.

On my Linux machine i have downloaded any files containing codeblocks including any plug-ins that are in the apps section of the Linux program list. When i could not get codeblocks to work i un-installed it and re-installed codeblocks directly form source-forge.net and i downloaded codeblocks for Linux 64 bit which is what my HP Compaq is but i am getting the same problem occurring. I also followed the link that was posted earlier and downloaded the "build essential" file but it still will not work.

I am sure it is something that i am doing wrong but i just can figure it out. 

On my college laptop it is running Windows 10 and i installed the Mingw Binary release. I followed the installer and kept all the settings default but i am getting an error that states "#include <stdio.h> file does not exist.



stahta01:
Do you know how to install packages under Linux?

If not, you need to learn how to do that.

Edit: Link that might help you https://community.linuxmint.com/tutorial/view/1525

Tim S.

Jenna:
It looks like you have added the "#include <stdio.h>" statement to the "# defines" tab in the compiler settings.
Either on project level (Build options of the project or target) or globally in "Settings -> Compiler ...".
This is plain wrong.
Such includes belong into the C/C++-file itself.
Defines are something completely different and can be added inside the source or header files in a line starting with a hash (#), or on the commandline of the compiler (for gcc-compilers prepended with a -D), that's what the happens with statements in the "' defines"-tab.

Now the IDE (Code::Blocks) adds the "#include <stdio.h>" to the commandline when invoking the compiler (prepended with "-D") and that's what happens here.
The commandline defines #include but due to the following space, it tries to find a file named <stdio.h>, what obviously does not exist.

So find the place where you added this line to the tab or start a new project from scratch (with the wizard) and see if it works.
If not, it is set in the global settings, and these settings should not be touched unless you know exactly what you do, because they are used for all projects using this compiler.
An exceptions might be the "Toolchain executables" tab (at least on windows), because you might have to define the correct installation dir of the compiler (and probably the exe-names).

Navigation

[0] Message Index

[*] Previous page

Go to full version