Hot answers tagged

10

It is worth taking a look at wxWidgets - it is a cross platform GUI library written in C++ but it can be used from C and also has bindings for python, ruby, perl and others. Cross Platform - Yes Windows/Linux/OS-X/Others - 64 & 32 bit. Free & Open Source - Yes and with a permissive, (LGPL compatible), licence. Maintained - Actively developed and ...


8

New SVG++ library is a good choice for SVG reading in C++, except that it is not lightweight and requires Boost library. But as it is header-only library and uses only header-only libraries from Boost, you only need to fetch both SVG++ and Boost and add them to include paths, no building required.


8

If you can accept HTML5/JS as GUI then take a look at the Chromium Embedded Framework (CEF): https://code.google.com/p/chromiumembedded/ The base CEF framework includes support for the C and C++ programming languages. CEF supports javascript bindings and callbacks, so you can communicate asynchronously both ways between C <> JS. Here is an example on ...


6

The QT Framework includes QT SVG, a module able to generate and render SVG files.


5

You can use Open BEAGLE, it's one of the most widely used Evolutionary Computation (EC) framework, and does provide a master-slave model for parallel fitness evaluation. Gagné, Christian, and Marc Parizeau. "Open BEAGLE: A New Versatile C++ Framework for Evolutionary Computation." GECCO Late Breaking Papers. 2002. Genericity: With Open BEAGLE, the user ...


5

Sublime Text should be able to do all three of your tasks: Basic context coloring This generally happens automatically. Ability to collapse {} blocks You can do this by using the "gutter" (the area where the line numbers are displayed). To fold a {} block, click on the triangle in the gutter that's on the same row as the { character. You can also ...


4

You can use splint with the alluse flag to check for unused functions but personally I would use doxygen to produce a call map - any functions that have no parents are probably unused - just look out for any functions that are in tables of functions that might not be directly called but things like state machines might invoke from the table index. Doxygen ...


4

You have a few options: librsvg from the Cairo Graphics project extend libsvgtiny to meet your needs extract the SVG layer from Amaya use an xml parser and then parse properties as needed for C++ and significant dependencies: QT, webkit or chromium Note on libsvgtiny: It is developed by the Netsurf Browser project and has very minimal dependencies that ...


4

I regularly do c++ Development work on Windows and my choice over the years has been Eclipse CDT ( C++ Development Tools ). Key Highlights of Eclipse CDT are: Free Very Stable Supports Cross Compilation Integrates well with MinGW and Cygwin Powerful Editor with rich features Vibrant Online Community Support Eclipse CDT would meet all the 3 objectives ...


4

You can use LZMA SDK. cross platform ANSI C compatible public domain license You must tell your compiler where to look for headers or copy the headers to standard directories (see this).


4

I would suggest taking a look at Code::Blocks as a possible alternative that is Free, Open Source & Cross Platform. Your feature requests Find and replace works like Visual Studio on Windows - Find and replace works really well and includes: Find in Current File, Open Files, Project Files, Workspace Files or any path with recursive and filename ...


4

Eclipse CDT is a free C/C++ IDE which has a key combination (Ctrl+Shift+O, IIRC) which will remove unused #include and add those which are missing. Most modern compilers (such as GCC) will warn you of unused parameters. As a general topic, look at static code analysis tools, such as Lint . See also (list of free static code analysis tools). I recommend ...


3

emacs will work, although I prefer geany which has status, compiler, messages, scribble, and terminal windows along with all the code/file windows. It has a compiler, a linker, ability to set all the options for both compiling and building It has the ability to run the executable in a (temporary) terminal.


3

The easiest free GCC based IDE for Windows is Code::Blocks, which can be portable. But, alas, it doesn't currently have 4.9 - perhaps you could ask on the forums? Or, would you consider using 4.7 or 4.8 to build 4.9 from source & adding that in to whatever solution you choose? Since you like NetBeans, you can use a portable version, but that leaves you ...


3

Given that @user2284570 is in the comfortable situation of covering 100% of use cases via tests dynamic code analysis will provide the answer. In other cases removal of functions, their calls and conditions would require a thorough review. Any code coverage tool will report function coverage in one form or the other. The main gripe seems to be reporting of ...


3

Perhaps libarchive is the answer, but I'm not sure if it's ANSI C. Though it's portable and works on most POSIX-like systems (including FreeBSD, Linux, Solaris, etc.) and supports Windows, including Cygwin, MinGW, and Visual Studio.


3

You can use Code::Blocks on a wide variety platforms - it works with a variety of compilers, including cross compilers, and you can configure for remote debugging - usually important on developing embedded systems. The exact details for remote debugging vary between compilers & debuggers.


3

Yes, LibTomCrypt. LibTomCrypt implements most common cryptographic primitives (and many uncommon ones), including RSA (PKCS#1 v1.5, PSS and OAEP modes). The code is clean and portable C, so you can link it into applications written in pretty much any programming language. The library is made of small objects so that only the code you actually need will get ...


3

khash A few C hash table/map libraries exist but, based on your requirements, the only one that I know you could try is khash, by Attractive Chaos. It's part of klib, a standalone and lightweight C library. Essentially khash is a fast and light-weighted hash table library in C (implemented as a C macro, which can also help the performance). It's released ...


3

It seems that JetBrains CLion may meet almost all of your requirements. It is often not gratis, though. You might also want to have a look at the C++ IDE comparison table on Wikipedia.


3

You can try CppDepend, it can report you what you want and you can customize its cqlinq queries to query as you want the codebase.


3

CudaText (free, open source) is lite and allows it, but with some steps from user. user needs plugins: Config Toolbar, External Tools (all in Addon Manager) user needs to add a "tool" to compile code; and second "tool" to run compiled app. Via Tools menu (from plugin). and enter reg.ex. in "tool" properties (for both tools) user needs to add 2 buttons via ...


3

I have been a profession embedded programmer for "a few" decades. Eclipse is what I have always used, in industry, when developing under Linux. There are probably others, some may even be "better" - if you list some requirements - but Eclipse has been "good enough" for every company I have ever worked for.


2

SVG is a special type of XML (source). So any C/C++ library that allows you to parse XML will also allow you to parse SVG. Many libaries are posted as answers to the question Best open XML parser for C++. Some of them are RapidXML pugixml TinyXML-2


2

You mentioned wanting to use a library to implment this type of recognition in your own code. I would suggest using LEADTOOLS OCR, this is a commercial SDK for Optical Character Recognition. The LEADTOOLS OCR SDK is available for both C and C++. I put together a bare bones code snippet using the C libraries that will take in a bitmap and print out the text. ...


2

Our DMS Software Reengineering Toolkit with its C Front End can parse "incomplete code". In particular, given a DMS-based parser, DMS provides both nonterminal pattern parsers (that is, DMS will parse any string which is a nonterminal such as expression, statement, declaration. Such parses if successful produce an AST for a designate nonterminal. ...


2

usrsctp will provide the functionality you are looking for. https://github.com/sctplab/usrsctp Description from the project: This is a userland SCTP stack supporting FreeBSD, Linux, Mac OS X and Windows. Language: C License: open source with attribution


2

Modern and cross-platform library is also inicpp. It has pretty good test support, is easy to use and one of the greatest features is schema validation (with full type safety). It's not big, but it's more than one .h and .cpp file. License is MIT.


2

I have used Simian, which identifies duplication in Java, C#, C, C++, COBOL, Ruby, JSP, ASP, HTML, XML, Visual Basic, Groovy source code and even plain text files It is a commercial software with different licenses. and it can ignore identifiers, braces etc. during the comparison, so you can not only find exact duplicates but structural duplicates. It ...


2

In gcc you have the following options: -Wunused-result Warns if returned value is unused -Wunused warn about a number of unused cases and -Wall (my favorite) turns on a bunch of warnings including -Wunused-result A full list of gcc warning options can be found here. You can also use function atributes to set warn_unused_result so as to generate a warning ...


Only top voted, non community-wiki answers of a minimum length are eligible