Linking errors with MinGW and FLTK - c++

I know very little about C++, I'm used to Java where compiling is so simple! Anyways, I'm trying to use Eclipse Kepler to write a program that implements the FLTK graphics library. I think my compiler is MinGW. Here is what it prints out when I build the program:
http://hastebin.com/jefepobula.vbs
Here is the code (it is the example code from FLTK's documentation):
http://hastebin.com/fujafuyiqa.coffee
I really appreciate any help with this. It's been very frustrating for me and my friend. Like I said, C++ is pretty overwhelming for me as far as the steps it takes just to run your code.
Again, thanks!

Linker reports missing symbols. Looks like it can't find COMCTRL32 and UUID libraries.

Related

for those who worked with skia, how would i build a skia program?

i recently have finished building the skia library on my windows 10 machine, however im honestly pretty confused as to how i would even go about using this library in any program. as the documentation provides little to no guidance on using the library with an actual program outside of just compiling the HelloWorld program in the examples. im incredibly lost here, and have no idea where i could even begin
im new to C++ and i have never really used libraries before. a really clear guide on how to compile a simple c++ program with the library would be very helpful.

Xcode (Version 9.2 (9C40b)): C++ Semantic and linker issues when trying to include boost

I am currently working on a masters project and I am desperately trying to compile some C++ code on my mac (macOS High Sierra 10.13.3 using Xcode) so I can develop the program at home. The Program is a set of files used for performing integrals on a bunch of different data... it uses headers from the boost library and also alglib. This all works fine on Windows machines running visual studios.
The issue I have is that when I include boost (which was installed via homebrew to usr/local/) into the search paths in the project build settings I get all sorts of semantic and linker issues.
I have searched this for a while and tried to implement a few potential fixes. I have tried:
Compiling with different C++ dialects and and standard libraries (libc++ and libstdc++).
Uninstalling/reinstalling boost.
Removing suggested header files and libraries from 'usr/local' suggested by brew doctor.
and implementing all sorts of other random permutations of settings that I felt could be issued.
The number of errors and warnings may change using different build settings however semantic issues persist and I am running out of ideas for how to proceed. It is really important I get this working and any insight would be appreciated.
From my reading about and attempting to troubleshoot I get the idea that it is some kind of linking issue between the boost library and the standard c++ libraries, but I have little experience with semantic issues as in the past I have been lucky enough that things just worked! Perhaps my MacBook may just have too much going on and needs some housecleaning to stop confusing the compiler, but regardless if anyone can help me fix this issue I would be eternally grateful!
I understand I haven't provided much detail here but if any information would be useful I'm happy to send screenshots.
link to errors image
In C++03 ifstream did not have a constructor that accepts std::string.
Such a constructor was added in C++11. The same holds for std::stod: it exists since C++11.
So you have to compile with -std=c++11 option.

Irrlicht C++ - Creating a proper project with Code::Blocks & MinGW?

I'm currently learning the Irrlicht library but am having quite a bit of trouble. I use the examples that come with the Irrlicht ZIP archive (which is NOT the examples that come with C::B). Exactly how would I go about solving this "Entry Point not Found" error at runtime? It says something like "gxx_personality_v0" not found or something. What? I don't even know where this is coming from? Does Irrlicht mix good with MinGW?
It seems you are building with gcc instead of g++. The g++ command links with the C++ library, while gcc does not, leading to errors such as yours.

gtksourceview compiling in code blocks

i want to use gtksourceview in my c++ project. I dig around the IDE of code::blocks and really find it helpfull. i specify gtkmm directory in linker and include options but as i look for gtksourceview i found a libgtksourceview-2.0-0.dll file i really don't know how to add this in code::blocks and use gtksourceview. I am have programming experience in C for microcontrollers just and now i have not really idea about the compilation process of gcc and g++. and can i able to add the file directives as
#include <gtksourceview/gtksourceview.h>
please help
sorry if it seems so basic question for someone but i really stuck of to compile the code and then asking.
I am using windows by the way.
Thanks in advance
There are two different things: the runtime libraries and the development headers. The former allows you to run the applications (also to link them), the later to compile them. Either you are missing the header files (gtksourceview.h in your example) or setting the PATH in your IDE to find the header files.
Check the manual for 'Including libraries'.

How can I compile code directly that was originally written in code::blocks

I need to compile code someone gave me, which they wrote in code::blocks. I know code::blocks uses gcc, but what is the specific format for the command(s) it uses to do so? Because of various circumstances, I can't use code::blocks myself for this, and I'm too rusty at compiling C/C++ to figure it out from the code.
check out this - cbp2make - makefile generation tool
haven't used it, just assumed it should exist
i imagine code blocks has a place for compilation and linking options, so i guess you could ask him what they are
The easiest way is to insert a small stub named gcc that records all its arguments and then forwards to the real GCC. This is fairly easy with a shell script.