Skip to content

Instantly share code, notes, and snippets.

#include<stdio.h>
class A
{
public:
void trial();
void log(int a)
{
#include<stdio.h>
class A
{
public:
void trial();
void log(int a)
{
/*
* Function pointers and classes
* The program works correctly by printing 5 with the "Dont want to do this" lines
* Need to get the program working without the "Dont want to do this" lines
* */
#include<stdio.h>
class A
{
public:
#0 0x7ffff53b2d05 raise(sig=6) (../nptl/sysdeps/unix/sysv/linux/raise.c:64)
#1 0x7ffff53b6ab6 abort() (abort.c:92)
#2 0x7ffff5e876dd __gnu_cxx::__verbose_terminate_handler() () (/usr/lib/x86_64-linux-gnu/libstdc++.so.6:??)
#3 0x7ffff5e85926 ??() (/usr/lib/x86_64-linux-gnu/libstdc++.so.6:??)
#4 0x7ffff5e85953 std::terminate() () (/usr/lib/x86_64-linux-gnu/libstdc++.so.6:??)
#5 0x7ffff5e862af __cxa_pure_virtual() (/usr/lib/x86_64-linux-gnu/libstdc++.so.6:??)
#6 0x40b0a3 wxThreadHelperThread::Entry(this=0x72ab80) (/usr/include/wx-2.8/wx/thread.h:665)
#7 0x7ffff61aa851 wxThreadInternal::PthreadStart(wxThread*) () (/usr/lib/libwx_baseu-2.8.so.0:??)
#8 0x7ffff5719d8c start_thread(arg=0x7fffd7d70700) (pthread_create.c:304)
A::one_method()
{
//Create the thread
Create();
wxThread *a = GetThread();
if(a != NULL)
{
// go!
if (a->Run() != wxTHREAD_NO_ERROR)
somewhere in a top header file did this :
const wxEventType update_node_event = wxNewEventType(); // You get to choose the name yourself
in the constructor of a frame did this :
Connect(GetId() , update_node_event , (wxObjectEventFunction) &tcptraceFrame::update_node_data );
inside the frame class wrote this :
void logger::init_ui()
{
//Now create panel
wxPanel *panel = new wxPanel( this , ::wxNewId() );
//btn_trace->SetToolTipString(_("Click to get whois information for the domain name."));
txt_log = new wxTextCtrl(panel , -1 , _("") , wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE);
//Add the input field and submit button to a Box Sizer since the must stay together
wxBoxSizer *space = new wxBoxSizer(wxHORIZONTAL);
ld||cannot find -lwx_gtk2u_richtext-2.8|
ld||cannot find -lwx_gtk2u_aui-2.8|
ld||cannot find -lwx_gtk2u_xrc-2.8|
ld||cannot find -lwx_gtk2u_qa-2.8|
ld||cannot find -lwx_gtk2u_html-2.8|
ld||cannot find -lwx_gtk2u_adv-2.8|
ld||cannot find -lwx_gtk2u_core-2.8|
ld||cannot find -lwx_baseu_xml-2.8|
ld||cannot find -lwx_baseu_net-2.8|
ld||cannot find -lwx_baseu-2.8|
cd /path/to/repo-name
git symbolic-ref HEAD refs/heads/gh-pages
rm .git/index
git clean -fdx
echo "My GitHub Page" > index.html
git add .
git commit -a -m "First pages commit"
git push origin gh-pages
ldd ./tcptrace
linux-vdso.so.1 => (0x00007fff20bc2000)
libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x00007fe05b4fd000)
libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x00007fe05b24a000)
libatk-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libatk-1.0.so.0 (0x00007fe05b028000)
libgio-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0 (0x00007fe05acfd000)
libpangoft2-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0 (0x00007fe05aad1000)
libpangocairo-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0 (0x00007fe05a8c3000)
libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x00007fe05a6a3000)
libcairo.so.2 => /usr/lib/libcairo.so.2 (0x00007fe05a3e2000)