Search found 17 matches
- Sun Jun 10, 2012 1:15 pm
- Forum: General Development
- Topic: OMP does not work.
- Replies: 1
- Views: 2537
OMP does not work.
Doeas anybody know how to set up project and use OMP in wxwidgets? OS: Windows7, IDE: Codelite. My program does not run, just simply start, runnig a few secs, and then stop. #include <stdio.h> #include <omp.h> #include <math.h> int main(int argc, char **argv) { printf("Sekvencni cast...\n"...
- Sat Jun 09, 2012 7:45 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Configure OPEN MP in Codelite
- Replies: 6
- Views: 2712
Re: Configure OPEN MP in Codelite
When I try to launch my program, it launch a console for a while and than it ends. #include <stdio.h> #include <omp.h> #include <math.h> int main(int argc, char **argv) { printf("Sekvencni cast...\n"); int i; omp_set_nested(2); #pragma omp parallel num_threads(4) { printf("Paralelni s...
- Sat Jun 09, 2012 1:51 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Configure OPEN MP in Codelite
- Replies: 6
- Views: 2712
Re: Configure OPEN MP in Codelite
I´ve added these to linker: libgomp.a a libpthreadGCE2.a, are those files right or it is necessary to add more or some else?
- Sat Jun 09, 2012 11:04 am
- Forum: Compiler / Linking / IDE Related
- Topic: Configure OPEN MP in Codelite
- Replies: 6
- Views: 2712
Re: Configure OPEN MP in Codelite
Sorry, I have windows 7, when I put pragma directive to my code, the program simply does not launch.
- Thu Jun 07, 2012 8:39 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Configure OPEN MP in Codelite
- Replies: 6
- Views: 2712
Configure OPEN MP in Codelite
Does anybody know how to configure OMP library in codelite?
I mean what attach, what set to linker, compiler.
I tried, but my program does not run.
THANKS
I mean what attach, what set to linker, compiler.
I tried, but my program does not run.
THANKS
- Sun May 13, 2012 6:30 pm
- Forum: C++ Development
- Topic: Freeze program on exit thread
- Replies: 4
- Views: 2595
Re: Freeze program on exit thread
F**king deadlock in pause method, cause I forgot to leave critical section, NICE!!
Thanks very much. SOLVED!
Thanks very much. SOLVED!
- Sun May 13, 2012 3:01 pm
- Forum: C++ Development
- Topic: Freeze program on exit thread
- Replies: 4
- Views: 2595
Re: Freeze program on exit thread
I do not think there is a problem cause sleep(1000); is in miliseconds, if I debug and try to find out where is freeze, it leads to this method what is calling on deleting thread: If I delete what I put inside (remove my thread from array), it works fine. But where is mistake?? Anybody see?? void Th...
- Sun May 13, 2012 10:33 am
- Forum: C++ Development
- Topic: Freeze program on exit thread
- Replies: 4
- Views: 2595
Freeze program on exit thread
Dear All, I have created some thread class base on wxThread. I create new thread, add to some array of threads, but when I try to delete thread and in OnClose() method to delete this thread from this array program will freeze. Here is my code: thread1.h #ifndef THREAD1_H #define THREAD1_H #include <...
- Fri Apr 27, 2012 7:43 pm
- Forum: C++ Development
- Topic: Expected constructor.
- Replies: 4
- Views: 1190
Re: Expected constructor.
Thanks! 3. Check the wxWiki thread example, wxThread documentation and multithreading overview wxWidgets documentation and threads sample, I think you misunderstood how interthread communication should be done. PB Example was enough - now it is working!! Next time I will use wiki first! Thanks a lot!
- Fri Apr 27, 2012 10:03 am
- Forum: C++ Development
- Topic: Expected constructor.
- Replies: 4
- Views: 1190
Re: Expected constructor.
Hope it will be enough: thread1.h #ifndef THREAD1_H #define THREAD1_H #include <wx\thread.h> // inheriting class's header file #include <wx\wx.h> class MainFrame; class Thread1 : public wxThread { public: Thread1(MainFrame* parent); ~Thread1(); MainFrame* m_parentFrame; virtual void *Entry(); virtua...
- Thu Apr 26, 2012 7:22 pm
- Forum: C++ Development
- Topic: Expected constructor.
- Replies: 4
- Views: 1190
Expected constructor.
Could anybody help me? I´m trying to use system messages but when I try to use connect I got this error: :21:error: expected, contructor, destructor or type conversion before (' token. Here is my code: 17: const wxEventType new_thread = wxNewEventType(); 19: wxCommandEvent MyEvent(new_thread); 21: C...
- Sat Apr 14, 2012 6:05 pm
- Forum: C++ Development
- Topic: wxBitmapButton
- Replies: 1
- Views: 704
Re: wxBitmapButton
SOLVED, I put it in wrong folder..
Sorry.
Sorry.
- Sat Apr 14, 2012 5:55 pm
- Forum: C++ Development
- Topic: wxBitmapButton
- Replies: 1
- Views: 704
wxBitmapButton
Hi All, I have a problem, I created through wxFormBuilder, wxBitmapButton, like this : m_thread1start = new wxBitmapButton( this, wxID_ANY, wxBitmap( wxT("run2.bmp"), wxBITMAP_TYPE_ANY ), wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW ); But when I start my app, it says to me Can´t load i...
- Sun Nov 06, 2011 6:59 pm
- Forum: wxCode
- Topic: INSTALLING wxSqlite3
- Replies: 17
- Views: 12231
Re: INSTALLING wxSqlite3
Could anybody explain step by step how to install wxSqlite3? System: windows, IDE: Codelite +wxWidgets, compiler: minGW. I downloaded wxSqlite3, unzip but I don´t know how to set linker, compiler.... or where put those files. Just as wxWidgets itself wxSQLite3 comes along with build files created b...
- Sun Nov 06, 2011 4:59 pm
- Forum: wxCode
- Topic: INSTALLING wxSqlite3
- Replies: 17
- Views: 12231
Re: INSTALLING wxSqlite3
cecilio wrote:Did you add:
#include "wx/wxsqlite3.h"
and changed your makefile or project file to include a ref to the sqlite3 library/dll?
Yes I've included wx/wxsqlite3.h, and how could I change project file to include a ref to the sqlite3 library/dll???