Search found 17 matches

by alvindera97
Wed May 13, 2020 8:03 am
Forum: Compiler / Linking / IDE Related
Topic: Cannot Compile For Windows Target
Replies: 7
Views: 128

Re: Cannot Compile For Windows Target

Unfortunately it seems like the cross-platform claim is not actually possible with wxWidgets. As all the research I have made don't seem to have a realistic solution. I believe that if wxWidgets truly and comfortably can "cross platform", there would be proper support and a forum genre for it. Apart...
by alvindera97
Mon May 11, 2020 8:29 pm
Forum: Compiler / Linking / IDE Related
Topic: Cannot Compile For Windows Target
Replies: 7
Views: 128

Re: Cannot Compile For Windows Target

Hi, No. Just run: wx-config --cxxflags --libs wx-config is a shell script. Thanks for the clarification. This is the output of the command: -I/usr/local/lib/wx/include/gtk3-unicode-3.1 -I/usr/local/include/wx-3.1 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -L/usr/local/lib -pthread -lw...
by alvindera97
Mon May 11, 2020 8:00 pm
Forum: Compiler / Linking / IDE Related
Topic: Cannot Compile For Windows Target
Replies: 7
Views: 128

Re: Cannot Compile For Windows Target

Thanks for your reply and analysis of the situation. However, I would like to clarify something. Are you referring to the output of g++ `wx-config --cxxflags --libs As I got the result; /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux_gnu/Scrt1.o: In function `_start': (.text+0x20): undefined r...
by alvindera97
Mon May 11, 2020 9:20 am
Forum: General Development
Topic: map.find() not working
Replies: 12
Views: 546

Re: map.find() not working

Yes... You are absolutely correct. However, my intention was to create a map of all the courses once (most suitably as a variable) and have my event handlers check that map whenever the credit load of a course had to evaluated.This is what I tried (in the constructor): using namespace std; std::map...
by alvindera97
Mon May 11, 2020 7:28 am
Forum: Compiler / Linking / IDE Related
Topic: Cannot Compile For Windows Target
Replies: 7
Views: 128

Cannot Compile For Windows Target

I compiled wxWidgets source code as per the instructions described here https://wiki.wxwidgets.org/WxWindows_application_compile_(for_Linux)_and_cross-compile_(for_Windows)_under_Linux/Eclipse/CDT . This is the process I went through for the compilation: First I created a "windows_build" directory w...
by alvindera97
Mon May 11, 2020 7:24 am
Forum: General Development
Topic: map.find() not working
Replies: 12
Views: 546

Re: map.find() not working

The other options for declaring maps were too complex for my current understanding of C++. I do not think it is that complex. ;) // declaration of a new type called Courses typedef std::map<wxString, int> Courses; // declaration of variable of type Courses Courses myCourses; Yes... You are absolute...
by alvindera97
Mon May 11, 2020 6:49 am
Forum: General Development
Topic: map.find() not working
Replies: 12
Views: 546

Re: map.find() not working

I would like to thank everyone on the platform who have contributed to this question. For me, I have loads of years of experience with python - whom is far less verbose when compared to C++. After reading the comments and suggestions concerning this question, I realized that my problem was basically...
by alvindera97
Wed May 06, 2020 12:59 am
Forum: General Development
Topic: map.find() not working
Replies: 12
Views: 546

Re: map.find() not working

I believe that std::map::find() returns an iterator which cannot be implicitly converted to a bool. You should try changing the comparison to if (first_courses.find(course_one->GetValue()) != first_courses.end()) BTW, this has nothing do with wxWidgets, this is just C++ standard library, you can ch...
by alvindera97
Wed May 06, 2020 12:56 am
Forum: General Development
Topic: map.find() not working
Replies: 12
Views: 546

Re: map.find() not working

Thank you... After making research into wxComboBox , I understood the reason for your suggestion. You are right. However, the list of variables I have is well above 30. I wouldn't want my users to have to scroll through 20+ options to get to where they want to. This selection would happen about 17 t...
by alvindera97
Sun May 03, 2020 8:42 pm
Forum: General Development
Topic: map.find() not working
Replies: 12
Views: 546

map.find() not working

Good day everyone. It's me again. I hope we you are all doing well. I have come to a point in my wxWidgets application where user input on wxTextCtrl needs to be evaluated against a map of keys and values (python's dictionary equivalent). If such entry in the wxTextCtrl is found in the dictionary, i...
by alvindera97
Sun Apr 19, 2020 11:05 am
Forum: Compiler / Linking / IDE Related
Topic: How to compile wxwidgets application on Linux machine targeted for windows machines
Replies: 1
Views: 96

How to compile wxwidgets application on Linux machine targeted for windows machines

I use Ubuntu 18.04 and wxwidgets-3.1.3. I have been able to successfully write, compile and run my GUI application for Linux. I would now like to compile my application to be able to run on Windows operating system. From the research that I made, this is possible however, I am not sure what resource...
by alvindera97
Tue Apr 14, 2020 7:05 pm
Forum: C++ Development
Topic: Segmentation fault (core dumped) on ID value
Replies: 5
Views: 266

Re: Segmentation fault (core dumped) on ID value

MyFrame *frame = new MyFrame(); There's your problem right there. Let's see if you understand it and then solve it. @catalin: That's not really helpful. Even i didn't understand what you mean by that. Actually I was wrong there. I meant that a frame that was not yet created was being used, but fail...
by alvindera97
Tue Apr 14, 2020 6:59 pm
Forum: C++ Development
Topic: Segmentation fault (core dumped) on ID value
Replies: 5
Views: 266

Re: Segmentation fault (core dumped) on ID value

MyFrame *frame = new MyFrame(); There's your problem right there. Let's see if you understand it and then solve it. @catalin: That's not really helpful. Even i didn't understand what you mean by that. There are several issues with your code. a) Change your include paths, so that you don't have to i...
by alvindera97
Tue Apr 14, 2020 6:16 am
Forum: C++ Development
Topic: Segmentation fault (core dumped) on ID value
Replies: 5
Views: 266

Segmentation fault (core dumped) on ID value

I have been able to write my components properly and draw them to the frame (each component with it's relevant ID at dev time) but when I try to create an event on the event table with the ID of a wxTextCtrl component, I get the error message ( after compilation and gtk attemps to run the program ):...
by alvindera97
Tue Apr 14, 2020 5:49 am
Forum: C++ Development
Topic: SetMaxLength() not working
Replies: 8
Views: 186

Re: SetMaxLength() not working

Unfortunately I do not know what a constructor is (like I mentioned in my first post, I have just basic C++ knowledge) and I cannot ask you to define a constructor or ask you to reply with a corrected version of my code (with the constructor implemented). However, I was able to implement the feature...