Search found 130 matches

by spflanze
Thu May 14, 2020 3:53 am
Forum: C++ Development
Topic: Casting a Pointer to the Frame
Replies: 1
Views: 583

Casting a Pointer to the Frame

I have several wxGrid derived objects in a frame. The wxGrid derived class has a method I added, and need to debug. As a debugging aid I would like to set a break point when the method is called for a specific instance of that wxGrid derived class. I attempted to do that using the this pointer, and ...
by spflanze
Thu Mar 05, 2020 7:56 pm
Forum: Compiler / Linking / IDE Related
Topic: Undefined Reference Errors
Replies: 24
Views: 4882

Re: Undefined Reference Errors

Everything is working now. Thanks everyone for your help. I did not recognize until now that "-p" and "-pipe" were terse, and verbose, versions of the same command. The options: -pipe -mthreads -Winvalid-pch -v were supoposed to be only in the tab at: "Project => Build optio...
by spflanze
Thu Mar 05, 2020 2:52 am
Forum: Compiler / Linking / IDE Related
Topic: Undefined Reference Errors
Replies: 24
Views: 4882

Re: Undefined Reference Errors

On my system the minimal sample is on the path: C:\wxWidgets-3.1.3\samples\minimal The MS Windows 7 command prompt does not recognize the command "make". There is no make.exe in that minimal directory. I have recently installed CMake. Will that do? Taking a cue from an earlier posting abou...
by spflanze
Tue Mar 03, 2020 9:54 pm
Forum: Compiler / Linking / IDE Related
Topic: mingw Posix or Win32?
Replies: 1
Views: 1053

mingw Posix or Win32?

I am reinstalling my compiler using the download from: https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/installer/mingw-w64-install.exe/download This installation program gives me a choice between posix, and Win32. In Windows 7 which one...
by spflanze
Tue Mar 03, 2020 4:14 am
Forum: Compiler / Linking / IDE Related
Topic: Undefined Reference Errors
Replies: 24
Views: 4882

Re: Undefined Reference Errors

I understand that Code::Blocks is built using wxWidgets. Which compiler is used compile Code::Blocks nightly builds? By minimal do you mean using the Wizard to create a minimal starter project to compile? I opened the .cpb file, and did a search for those missing directories. The searches did not ge...
by spflanze
Mon Mar 02, 2020 7:48 pm
Forum: Compiler / Linking / IDE Related
Topic: Undefined Reference Errors
Replies: 24
Views: 4882

Re: Undefined Reference Errors

WX_CPU_AMD64 was removed from that wrong place. With "--define WX_CPU_AMD64" in "Project => Compiler settings (tab) => Other resource compiler options (subtab)" I get this result: COLLECT_GCC_OPTIONS='-pipe' '-mthreads' '-Winvalid-pch' '-v' '-D' '__GNUWIN32__' '-D' '__WXMSW__' '-...
by spflanze
Mon Mar 02, 2020 1:45 am
Forum: Compiler / Linking / IDE Related
Topic: Undefined Reference Errors
Replies: 24
Views: 4882

Re: Undefined Reference Errors

Thanks for the suggestion, but this did not solve it. I got the same error. "WX_CPU_AMD64" was added to "Project => Build options => Compiler settings (tab) => #defines (subtab)" Pasted here are the last lines of the build log: COMPILER_PATH=C:/Program Files/mingw-w64/x86_64-8.1....
by spflanze
Sun Mar 01, 2020 12:58 am
Forum: Compiler / Linking / IDE Related
Topic: Undefined Reference Errors
Replies: 24
Views: 4882

Re: Undefined Reference Errors

Here what a text editor shows is in resource.rc: aaaa ICON "wx/msw/std.ico" #include "wx/msw/wx.rc" The "aaaa" part is suspicious. Should this be there? Removing it resulted in a "No such file or directory" error. The "-F pe-x86-64" resource option g...
by spflanze
Sat Feb 29, 2020 10:57 pm
Forum: Compiler / Linking / IDE Related
Topic: Undefined Reference Errors
Replies: 24
Views: 4882

Re: Undefined Reference Errors

I eliminated all use of WXDLLIMPEXP_FWD_CORE in my project files. You were right, this eliminated all the undefined reference errors, and the compiler got a lot farther. But now there is this error: C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw3...
by spflanze
Sat Feb 29, 2020 1:01 am
Forum: Compiler / Linking / IDE Related
Topic: Undefined Reference Errors
Replies: 24
Views: 4882

Re: Undefined Reference Errors

I still have the wxWidgets library compiled with SHARE=1. WXDLLIMPEXP_ADV has been changed to WXDLLIMPEXP_CORE. The use of WXDLLIMPEXP_CORE is necessary wherever I derive a class from a wxWidgets class. All wxWidgets classes are declared with WXDLLIMPEXP_CORE, so I must do the same when I derive fro...
by spflanze
Fri Feb 28, 2020 11:04 pm
Forum: Compiler / Linking / IDE Related
Topic: Undefined Reference Errors
Replies: 24
Views: 4882

Re: Undefined Reference Errors

I believe I know what is happening. Prior to the undefined reference errors, I get warnings such as: C:\Engineering_Software\TIA Designer\src\Utilities.cpp|2072|warning: 'void wxGridfData::UpdateDisplay(int, int, wxGridCellChoiceEditorExt*)' redeclared without dllimport attribute after being referen...
by spflanze
Fri Feb 28, 2020 2:58 am
Forum: Compiler / Linking / IDE Related
Topic: Undefined Reference Errors
Replies: 24
Views: 4882

Undefined Reference Errors

I have many errors of the type: C:\Software\Designer\src\JunctionCap.cpp|332|undefined reference to `__imp__ZN11wxGridfData13UpdateDisplayEii'| C:\Software\Designer\src\opamp.cpp|32|undefined reference to `__imp__ZN11wxGridfData8AllocKeyEv'| According this webpage: https://wiki.wxwidgets.org/Compili...
by spflanze
Fri May 24, 2019 5:24 am
Forum: Compiler / Linking / IDE Related
Topic: How to build wxWidgets-3.1.2 using MinGW-w64?
Replies: 1
Views: 1470

Re: How to build wxWidgets-3.1.2 using MinGW-w64?

The error was due to "USE_X" in the make command line. It did compile after I removed it.
by spflanze
Fri May 24, 2019 4:42 am
Forum: Compiler / Linking / IDE Related
Topic: How to build wxWidgets-3.1.2 using MinGW-w64?
Replies: 1
Views: 1470

How to build wxWidgets-3.1.2 using MinGW-w64?

I am attempting to compile wxWidgets-3.1.2 using MinGW-w64 in Windows 7. I downloaded and installed MinGW-w64 from: https://sourceforge.net/projects/mingw-w64/ In the installation I set these values: Version: 8.1.0 Architecture: x86_64 Threads: posix Exception seh Build revison: 0 I started up MinGW...
by spflanze
Fri May 17, 2019 3:39 am
Forum: Compiler / Linking / IDE Related
Topic: How to Use wget to Download Code::Blocks from SVN
Replies: 1
Views: 1046

Re: How to Use wget to Download Code::Blocks from SVN

I have figured this out. To get only the trunk directory it must be followed by a / character in the command. The correct command is:

Code: Select all

 wget -N -e robots=off -r -np -c --tries=100 http://svn.code.sf.net/p/codeblocks/code/trunk/