Welcome to the most active Linux Forum on the web.
Go Back > Blogs > rainbowsally
User Name


Uncategorized Entries with no category

qt type id test/demo

Posted 05-27-2012 at 10:38 PM by rainbowsally
Updated 05-27-2012 at 10:40 PM by rainbowsally

Today's features:
  • Use C++ typeid's to compare or check types.
  • Share base64 encoded compressed file/dir data in message forums (example).

The typeid(obj) doesn't require QT, but it also works with it. Here's a simple makefile and a widget to show some type ids and how to compare

After running this you should have a folder named typeid-test. Type 'make' inside that folder to create the 'main' executable.

Requires base64, QT4, make, gcc, and all that...
Posted in Uncategorized
Views 890 Comments 0 rainbowsally is offline

libLQ-qt-mc2 with qt4 support

Posted 05-27-2012 at 10:22 PM by rainbowsally
Updated 05-04-2015 at 01:50 PM by rainbowsally (new version)

Note: As of March 2015, there are 64-bit versions of mc2 and kdevelop3, debugged kdbg, new.make, and more available for d/loading.

See blog entry here if you are running a 64 bit linux.

Here's the original post which might contain helpful links if you have trouble finding or linking the Qt libs. There are quite a few versions floating around at this time....
Posted in Uncategorized
Views 1263 Comments 0 rainbowsally is offline

Precompiled cint dlls for linux (ix86) here

Posted 05-26-2012 at 04:49 AM by rainbowsally
Updated 08-06-2014 at 11:09 AM by rainbowsally (arch note)
Tags cint, compiling

These go into
by default.

If you have relocated your cint installation, I'm not sure they'll work.

Also I haven't gotten the gl stuff working yet, but if you've had trouble getting these to compile, here's what we have.

They are named '*.dll' but they are linux ELF binaries, and they go into the include folder with the header files so that cint can find them.
Posted in Uncategorized
Views 450 Comments 0 rainbowsally is offline

Example: sig-handler funcs for C and C++ (throw-catch) PART 2

Posted 05-14-2012 at 12:37 AM by rainbowsally
Updated 05-14-2012 at 08:39 AM by rainbowsally (possible cpu hang if -O2 switch is used)

Note: The signal-handler files can't be compiled with the -O2 switch and it's probably best if you only trap the signals you really intend to redirect, such as SIGSEGV (11). If you compile what we have here with the -O2 switch your cpu may hang if you try to exit using Ctrl-C for example. See implementation notes added to signal-handler.c below.

See part 1 for main functions to test this in C and C++.

To throw and catch stuff like segfaults in C++ it's...
Posted in Uncategorized
Views 1247 Comments 0 rainbowsally is offline

Example: sig-handler funcs for C and C++ (throw-catch) PART 1

Posted 05-14-2012 at 12:22 AM by rainbowsally

Today's Features
  • Translating signals to C++ throw-catch parameters.

To compile the C++ example these vars are set in mc2.def and should be similar for other methods of building it.
COMPILE = g++ -m32 -c -o # COMPILE <output_file> ...
CFLAGS = -Wall -g3 --save-temps
# or CFLAGS = -Wall -O2 # optimized
INCLUDE = -I $(SRCDIR) -I$(PREFIX)/include 

LINK = g++ -m32 -o # LINK <output_file> ...
Posted in Uncategorized
Views 1293 Comments 0 rainbowsally is offline


All times are GMT -5. The time now is 02:58 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration