codeblocks

On creation of a new file it shows “<SFML/Graphics.hpp> no such file or directory”

狂风中的少年 提交于 2019-12-11 14:49:52
问题 Whenever I create a new file or class in code blocks and include Graphics header or any sfml header the compiler says no such file or directory. When I work on a single file program works fine but when I create a new file and include the file in the same project then compiler starts showing errors. It is showing this error: E:\codes\sfml_project\main.cpp:1:29: fatal error: SFML/Graphics.hpp: No such file or directory I even tried installing SFML 2.1 again and linking all the files to

Delay Loading DWMAPI on Windows XP and CodeBlocks

假装没事ソ 提交于 2019-12-11 13:55:01
问题 I have a project that I'm been fighting to build for Windows (XP) for a month solid now. The project uses gtkmm-3, C++, and the latest GCC-TDM compiler. My IDE is CodeBlocks 13.14. I'm making progress, however, I am now getting hung up on this error message... ld.exe cannot find -ldwmapi Now, DWMAPI is a DLL only available on Windows Vista and above. According to my research, you can Delay Loading of certain DLLs in cases where they are present on some systems, but not on others. The problem

Codeblocks “Error resetting breakpoint…” can't debug

本小妞迷上赌 提交于 2019-12-11 13:32:34
问题 This is my first post, so feel free to direct me elsewhere if this is in the wrong place. I'm totally new to code::blocks, and I followed the directions (twice) from here to set it up with minGW. Other than some expected warnings, it builds just fine. However, when I go to debug it, I get the following messages: Setting breakpoints Debugger name and version: GNU gdb (GDB) 7.4 Child process PID: 3928 [Inferior 1 (process 3928) exited with code [037777777777] Debugger finished with status 0

setting up sfml

喜欢而已 提交于 2019-12-11 13:16:07
问题 I'm following the sfml getting started guide for version 2 and codeblocks and did everything the tutorial told me to do : downloaded and unzipped the sdk added the path to the sfml headers and libraries linked the libraries graphics, window and system but the sample code doesnt work. I'm getting the error message that sfml-graphics-d-2.dll is missing. Compilation works, the window opens but remains black and this error pops up. Here's the link to the tutorial http://www.sfml-dev.org/tutorials

How do I link a library to my project in CodeBlocks & GCC without adding the library source to my project

你说的曾经没有我的故事 提交于 2019-12-11 11:24:01
问题 I am writing a program that uses the hashlib++ library (or will use it) but I don't want to add all of it's source files to my project because it's huge. Is there anyway to link to the hashlib++ source files so that I can use it in my project? I've tried linking to the header directly with a simple #include "path/to/hashlibpp.h" But I receive a nifty error for it as soon as I attempt to call any functions from the library. For example: undefined reference to `sha1wrapper::sha1wrapper() I am

Scala: Generate a block that conditionally runs another block

丶灬走出姿态 提交于 2019-12-11 11:11:35
问题 In the Circumflex framework, you can map an URL to a block like this: get("/foo") = { "hello, world!" } which, when browsing to /foo , will show the given string as expected. Now, to write a complete web application, you almost always need some form of authentication and authorisation. I'm trying to write some kind of wrapper for the above construct, so I can write this: get("/foo") = requireLogin { "hello, world!" } The requireLogin method would then check if the user is logged in, and if

MinGW: libpng won't build properly

雨燕双飞 提交于 2019-12-11 09:49:18
问题 So I need this libpng to be statically link with my dll to be used by my exe. This dll is already done before until I switch my compiler from MSVC to MinGW, then this dll won't work anymore so I think I should rebuild it again through MinGW. Now, I cannot resolve the linker errors that I get into libpng so I decided to rebuild it(libpng) myself again . Another problem arises with this zlib or libz (I don't know their difference), so I rebuilt it again and produces libz.a using make . I then

Debugging Intel Compiled Project with GDB

旧时模样 提交于 2019-12-11 09:45:47
问题 I've got a simple Hello World project in the Code::Blocks IDE which I'm compiling using the Intel C++ compiler. I've set the compiler option '/Zi' in the projects Build Settings so I can debug the application with breakpoints. However no breakpoints are ever reached. It appears that no debugging symbols can be found within the object. They are correctly reached when I change to use the gcc compiler however. What am I missing here? Shouldn't this work as is? [Update] Seems to work on Linux but

Editing CodeBlocks WxSmiths project

自作多情 提交于 2019-12-11 09:44:30
问题 I have an old project done in CodeBlocks WxSmiths. I copied it across to my new computer and now I cannot make any changes to the project! I can add items to a panel on the main frame (and the preview looks fine) but the changes are discarded when I compile and run the project. All I get is the old project executable without my new additions! (I did clean build as well). Or in other words a main frame cpp file and header file is not getting updated with the new changes I make to the form. The

In the code::blocks compiler for linux, how can one add compilation flags like '-lrt' or '-lboost_thread'?

若如初见. 提交于 2019-12-11 09:28:57
问题 Debugging in gdb is not convenient for me so I enjoy the nice debugging interface that code::blocks offers. Now that I have moved my project into an area where those flags are required (the ones in the title, of course), I find that I can't compile on code::blocks anymore :/. 回答1: Hi everyone I figured out how to add the -lrt. Since -lrt is passed to the linker and not the compiler you can go to Settings->Compiler and Debugger->linker options then press add and after doing a "locate lrt" I