Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Help with Netbeans MinGW C++ calling functions

For general discussion related FlowStone

Help with Netbeans MinGW C++ calling functions

Postby aronb » Tue Oct 20, 2015 9:19 pm

Hi,

I need some help setting up Netbeans MinGW C++ please.

I used the tutorials (1, 2, & 3) on Flowstone Guru (perfect tutorial) and even wrote a few DLLs for Flowstone that work great, and I want to write more - that's all good !

However, not being a "guru" of C++ or setting up the proper resource files, etc. I am at a loss on how to do that.

For instance I want to start a function Library to use in my DLL's but have no idea where to "properly" put them, directory, or location in the Netbeans IDE, etc., etc. ???

Are there rules for this or a tutorial ? I have looked and nothing is jumping out as useful. I have watched a few YouTube videos and it looks very cryptic to me... again not a C++ programmer but can write a few routines as needed - I'm getting better though ;)

Thanks for any help on setting up function calls for DLLs !

Maybe a setup file example project someone would like to share... it would benefit us all.

Thank You,

Aron
User avatar
aronb
 
Posts: 154
Joined: Sun Apr 17, 2011 3:08 am
Location: Florida, USA

Re: Help with Netbeans MinGW C++ calling functions

Postby MyCo » Wed Oct 21, 2015 8:08 am

Libraries can be located wherever you want. However when you compile the main program/library that include them you have to specify the location. There are 2 different type of libs, DLLs being dynamic and there are also satic libraries. For your function library you probably want it to be a static library, so you don't end up with another DLL file that you would have to distribute with your DLL.

I don't know how Netbeans handles it... though. When it handles the generation of the makefile itself, you'll probably have to create a new project for the library and then specify in the main project the path to
1. the header file(s) of your library (= include path / source path)
2. the compiler output binary of the library compile-process (= include library / linker source / linker input)

I would rather use a more common IDE, then you might have better luck with finding tutorials. Under Windows, Visual Studio (finally it's unlimited free now) would be the go to candidate
User avatar
MyCo
 
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany

Re: Help with Netbeans MinGW C++ calling functions

Postby tulamide » Fri Oct 23, 2015 3:19 pm

I often wonder why I am the only one that thinks such a complicated way of managing programming assets is just annoying and anything else than modern?

Let's be honest, the only reason for C++ being in the lead is that there are pretty much no up-to-date, fast and efficient compilers for other languages. It's a shame if you see the elegance of other languages compared to C++.
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany


Return to General

Who is online

Users browsing this forum: Google [Bot] and 79 guests