codeblocks

how to Enable c++17 Support in code blocks

岁酱吖の 提交于 2019-12-08 10:20:13
问题 in codeblocks There isn't a C++17 option in the Build or Compiler options, only C++14 how can i enable it in codeblocks so that both coding tools and compiler support it? 回答1: Code::Blocks is not a compiler (but some glorified source code editor, sometimes calling themselves IDEs, which runs some external compiler). You need a C++17 compiler (and once you've got one you might configure your IDE or editor to use it with the appropriate options). Try the very latest version of GCC (at least GCC

Trouble importing dll library into CodeBlocks Linker

浪尽此生 提交于 2019-12-08 08:12:41
问题 I am trying to use libcurl for a simple application using CodeBlocks IDE. In Codeblocks IDE, after clicking on Build Options ==> Linker Settings ==> Link Libraries ==> "Add" , the file browser only allows me to choose between *.a, *.so, *.lib, and *.dyl files. Why is it not allowing me to choose *.dll files? I downloaded the binary packages for Windows for libcurl and they all provide .dll files. This is what it looks like: ====UPDATE==== Hi I have now downloaded the following zip file for

Installing GTK for use in Code::Blocks on Windows 10

独自空忆成欢 提交于 2019-12-08 08:05:48
问题 Original Question I am having trouble installing gtk to start building GUIs in C++ on Code::Blocks. Could anyone nudge me in the right direction? I'm running Windows 10 (64-bit) on a Lenovo. I attempted an installation guide (https://www.youtube.com/watch?v=jvQXvTtSIQo), stack overflow (How do you install GTK+ 3.0 on Windows?), the official GTK installation guide (https://www.gtk.org/download/windows.php), a written guide (http://www.tarnyko.net/repo/gtk3_build_system/tutorial/gtk3_tutorial

mingw32-g++.exe: error: CreateProcess: No such file or directory again [duplicate]

谁说胖子不能爱 提交于 2019-12-08 07:57:00
问题 This question already has answers here : Yet Another MinGW “gcc: error: CreateProcess: No such file or directory” (8 answers) Closed 2 years ago . I have searched all over and cannot find a solution. I installed the code::blocks version with the compiler. (Windows 7) Every time I try to compile, I get the No Such file or directory error. I thought maybe the spaces were causing the problem, so I downloaded and installed ming alone to C:\GCC\MinGW-w64 I went into the compiler settings/toolchain

Can I run C++ projects in Ubuntu from an NTFS partition?

一世执手 提交于 2019-12-08 07:44:47
问题 I have an extra NTFS partition to store data that I want to use both from WIndows and Ubuntu. I made a C++ project there. It was a simple Hello World console application. I get this error when I run it. sh :1 :/media/Data1/blah/blah/project/bin/debug/project :permission denied My fstab file looks like this: # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc nodev,noexec,nosuid 0 0 Blkid: /dev/sda1: SEC_TYPE="msdos" LABEL="DellUtility" UUID="5450-4444" TYPE="vfat"

How to add compiler flags on codeblocks

限于喜欢 提交于 2019-12-08 05:57:12
问题 I've been trying to compile a simple multithreaded piece of code I found online in an effort to learn how to multithread. To run this piece of code I need to use the compiler flags: -pthread and -std=c++0x . But whenever I try to add the flags the build log doesn't show them being used. I've tried some generic tips online to get these to work, but none of them worked. Can someone help? I've tried other advice online to add compiler flags to code blocks, but when I do that and check the build

OpenCV program cannot run because of missing “libgcc_s_dw2-1.dll” in Code::Block

会有一股神秘感。 提交于 2019-12-08 05:43:55
问题 I write a simple OpenCV program that tries to open an image "kindle-fire-hd.jpg" in the same directory. The IDE is Code::Block and the version OpenCV is 2.4.2 and the compiler is MinGW which is attached as the component of Code::Block. The code is shown here: #include "opencv2/highgui/highgui.hpp" #include <iostream> using namespace cv; using namespace std; int main(int argc, char** argv) { Mat im = imread(argc == 2 ? argv[1] : "kindle-fire-hd.jpg", 1); if (im.empty()) { cout << "Cannot open

CodeBlocks error in graphics library

安稳与你 提交于 2019-12-08 04:07:13
问题 I executed the following code in codeblocks IDE- #include <iostream> #include <graphics.h> using namespace std; int main() { int gd = DETECT, gm; initgraph(&gd, &gm, "C:\TC\BGI"); line(100, 200, 150, 250); cout << "Hello world!" << endl; return 0; } and while debugging my code stopped at this point in graphics.h int left=0, int right=0, int right=INT_MAX, int bottom=INT_MAX, I have included the WinBGIm library. 回答1: Looks like issue with initialization of graphics driver. What is the output

How to compile and run a C file in CodeBlocks which is outside a project?

跟風遠走 提交于 2019-12-07 23:10:21
问题 I have opened a project in CodeBlocks, which builds and runs successfully. Now if I open another C file in the IDE, the build and run command will act on the existing open project and not on the new C file. If there were multiple projects, we can switch between them using " activate project" . But what if there is one active project and another C file outside the project. How to complile and run the C file then ? 回答1: Under the Projects tab on the left, right- click on your project and click

Building static library using Code::Block with MinGW

别来无恙 提交于 2019-12-07 18:50:04
问题 I am using Code::Blocks with MinGW32 on a Windows machine. And I am trying to build a static library. I created a dummy hello world project. There is one single main.c file in the project. However, when I build it, I got the following message. It seems that there is no errors or warnings. It is just that no lib file is generated. mingw32-gcc.exe -Wall -g -c C:\Users\yzhong52\Desktop\hello_static_lib\main.c -o obj\Debug\main.o cmd /c if exist bin\Debug\libhello_static_lib.a del bin\Debug