Search found 109 matches
- Thu Jun 01, 2017 2:34 pm
- Forum: Compiler / Linking / IDE Related
- Topic: "Undefined Reference" linker errors
- Replies: 8
- Views: 2342
Re: "Undefined Reference" linker errors
That worked, doublemax! Thank you!!!
- Wed May 31, 2017 9:16 pm
- Forum: Compiler / Linking / IDE Related
- Topic: "Undefined Reference" linker errors
- Replies: 8
- Views: 2342
Re: "Undefined Reference" linker errors
doublemax, I do understand that the declarations in the h and cpp files must be identical. I changed the declarations in the cpp file, made a temp copy of the file, and ran a macro to strip out all the lines in the temp file that were not procedure/function declarations. Then I appended semicolons a...
- Wed May 31, 2017 8:02 pm
- Forum: Compiler / Linking / IDE Related
- Topic: "Undefined Reference" linker errors
- Replies: 8
- Views: 2342
Re: "Undefined Reference" linker errors
void Initialize (Global_Data_Class* GM_Ptr) { Local_GM_Ptr = GM_Ptr; // Get a copy of the pointer to the // global data class. Use the global // data pointer throughout this class to // update global memory values. Should be: void Global_Data_Class::Initialize (Global_Data_Class* GM_Ptr) { Local_GM...
- Wed May 31, 2017 7:25 pm
- Forum: Compiler / Linking / IDE Related
- Topic: "Undefined Reference" linker errors
- Replies: 8
- Views: 2342
Re: "Undefined Reference" linker errors
My best guess would be that all those methods are declared (in the header file), but they have no body. Are they defined in the .CPP file? Thank you for replying, doublemax. Yes, the procedures and functions are defined in both the .h file and the .CPP body. Otherwise, I'm pretty sure the code woul...
- Wed May 31, 2017 5:31 pm
- Forum: Compiler / Linking / IDE Related
- Topic: "Undefined Reference" linker errors
- Replies: 8
- Views: 2342
"Undefined Reference" linker errors
I'm having a problem that I don't know how to fix. wxWidgets compiles all my source files without any problem, but then I get a list of error messages saying "undefined reference to 'x'," where 'x' is the name of a user-defined procedure or function in one of my *.h files. See the attached...
- Fri May 19, 2017 11:23 am
- Forum: General Development
- Topic: Software Architecture for Reusable Code
- Replies: 4
- Views: 2075
Re: Software Architecture for Reusable Code
[snip]One generic answer would be to put the class into a library. That way future projects can access the calls easily, by linking to that library. [snip] Thank you for your suggestion, David! So I would need to compile and link to get a *.dll, correct? Then when that code is needed for another pr...
- Fri May 19, 2017 11:19 am
- Forum: General Development
- Topic: Software Architecture for Reusable Code
- Replies: 4
- Views: 2075
Re: Software Architecture for Reusable Code
[snip]Just write your class like you would any other class. You drop it into a project by "add existing item" or the equivalent in your IDE, or even just compiling it as a library then #including the relevent headers and linking against it when you need it. but the point here I suppose is...
- Wed May 17, 2017 3:01 pm
- Forum: General Development
- Topic: Software Architecture for Reusable Code
- Replies: 4
- Views: 2075
Software Architecture for Reusable Code
I am writing a class in C++ using wxWidgets and wxCrafter, minGW and CodeLite (see versions below). The class will contain procedures to build wxDialogs with controls to call procedures and functions to process data. Ordinary tasks. My project engineer wants me to write the class so that I can "...
- Thu May 11, 2017 6:25 pm
- Forum: Compiler / Linking / IDE Related
- Topic: compiler error C1083 for windows.h
- Replies: 1
- Views: 1554
Re: compiler error C1083 for windows.h
I realize this posting is a year and a half old, but I thought I would answer anyway. The error message is telling you that wxWidgets needs windows.h to compile your program, but wxWidgets can't find windows.h. My guess is that windows.h resides somewhere on your computer, but in a directory that wx...
- Thu May 11, 2017 5:32 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Compiling test_gui fails
- Replies: 5
- Views: 1599
Re: Compiling test_gui fails
You can find the source code for TestFactoryRegistry.h at http://cppunit.sourceforge.net/doc/cvs/_test_factory_registry_8h-source.html You'll have to make a new file on your own computer in cppunit/extensions, assuming you have that directory somewhere. TestRunner.h source code can be found at http:...
- Wed Apr 19, 2017 11:44 am
- Forum: C++ Development
- Topic: Trouble Instantiating wxPopupWindow
- Replies: 2
- Views: 726
Re: Trouble Instantiating wxPopupWindow
I don't see any wxPopupWindow in the code you posted, so i'm not sure if *your* wxPopupWindow is the same i have in mind. In general you'll create a popup window in the moment you want to display it. And when it closes it destroys itself. Oh. I see. Well, that would be easy enough. From the code it...
- Tue Apr 18, 2017 7:15 pm
- Forum: C++ Development
- Topic: Trouble Instantiating wxPopupWindow
- Replies: 2
- Views: 726
Trouble Instantiating wxPopupWindow
I am trying to create a wxPopupWindow in Windows, in CodeLite , using wxCrafter to design my pages. The program compiles and builds, but when I execute it, the code to display the wxPopupWindow does not run, because the pointer to the class is null. I had some code in main.cpp to instantiate the cla...
- Wed Apr 12, 2017 2:15 pm
- Forum: C++ Development
- Topic: wxTextCtrl Doesn't Display a Cursor
- Replies: 13
- Views: 3050
Re: wxTextCtrl Doesn't Display a Cursor
if I remove the wxEVT_SET_FOCUS and wxEVT_KILL_FOCUS events, what should I do with the code in those procedures? That's only for a test to check if this is related to the problem. It wasn't meant as a permanent solution. Oh. Sorry, I misunderstood. The focus is in the cell for Channel 1, column &qu...
- Wed Apr 12, 2017 2:08 pm
- Forum: C++ Development
- Topic: wxTextCtrl Doesn't Display a Cursor
- Replies: 13
- Views: 3050
Re: wxTextCtrl Doesn't Display a Cursor
So for sure missing an event.Skip() call is the reason why you don't see the cursor there. You were right! I added the event.Skip (true); at the top of the local Set_Focus and Kill_Focus procedures, and now I have a cursor. Thank you. I can't imagine how I would have learned about event.Skip otherw...
- Tue Apr 11, 2017 3:08 pm
- Forum: C++ Development
- Topic: wxTextCtrl Doesn't Display a Cursor
- Replies: 13
- Views: 3050
Re: wxTextCtrl Doesn't Display a Cursor
#7 is not necessary, you should pass that parameter to the command line Okay. #8 I've never seen that before, what's it supposed to do? I don't know. I found a batch file for this online and I just copied it. This is what clueless people do. :-( copy %WXWIN%\include\wx\msw\setup.h %WXWIN%\include\w...