Undefined Reference Errors

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
spflanze
Earned some good credits
Earned some good credits
Posts: 129
Joined: Tue Feb 15, 2011 10:02 pm

Undefined Reference Errors

Post by spflanze » Fri Feb 28, 2020 2:58 am

I have many errors of the type:

Code: Select all

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/Compiling_wx ... with_MinGW
this error can be caused by shared libs being given before static libs. In the Build log I see compile commands such as:

Code: Select all

[ 50.0%] g++.exe -pipe -mthreads -Winvalid-pch -v -D__GNUWIN32__ -D__WXMSW__ -DwxUSE_UNICODE -g -D__WXDEBUG__ -DWXUSINGDLL -Wfatal-errors -Wall -m64 -Wno-deprecated-declarations -I..\Libraries\cminpack-1.3.6 -IC:\wxWidgets-3.1.3\include -Iinclude -IC:\wxWidgets-3.1.3\lib\gcc_dll\mswud -IC:\wxWidgets-3.1.3\include -IC:\wxWidgets-3.1.3\ -IC:\wxWidgets-3.1.3 -IC:\wxWidgets-3.1.3\include -c "C:\Engineering_Software\TIA Designer\src\PinkNoise.cpp" -o "obj\Debug\TIA Designer\src\PinkNoise.o"

[100.0%] g++.exe -LC:\wxWidgets-3.1.3\lib\gcc_dll -LC:\wxWidgets-3.1.3\ -LC:\wxWidgets-3.1.3 -LC:\wxWidgets-3.1.3\include -o "bin\Debug\TIA Designer.exe" obj\Debug\Libraries\cminpack-1.3.6\cpp\dpmpar.o obj\Debug\Libraries\cminpack-1.3.6\cpp\enorm.o obj\Debug\Libraries\cminpack-1.3.6\cpp\lmder.o obj\Debug\Libraries\cminpack-1.3.6\cpp\lmpar.o obj\Debug\Libraries\cminpack-1.3.6\cpp\qrfac.o obj\Debug\Libraries\cminpack-1.3.6\cpp\qrsolv.o "obj\Debug\TIA Designer\src\JunctionCap.o" "obj\Debug\TIA Designer\src\opamp.o" "obj\Debug\TIA Designer\src\photodiode.o" "obj\Debug\TIA Designer\src\PinkNoise.o" "obj\Debug\TIA Designer\src\transistor_bjt_hybrid.o" "obj\Debug\TIA Designer\src\Utilities.o" "obj\Debug\TIA Designer\src\wxComboBoxDataFileA.o" "obj\Debug\TIA Designer\src\wxComboBoxDataFilePD.o" "obj\Debug\TIA Designer\src\wxComboBoxDataFileQ.o" "obj\Debug\TIA Designer\TIA_DesignerApp.o" "obj\Debug\TIA Designer\TIA_DesignerMain.o"  "obj\Debug\TIA Designer\resource.res" -static -mthreads -m64  -lwxmsw31ud -mwindows
Using built-in specs.
COLLECT_GCC=g++.exe
Target: x86_64-w64-mingw32
And sure enough, there are shared wxWidgets libraries appearing before my project's static code. How is this order changed in Code::Blocks?

In case anyone wonders, here is the current batch file with which wxWidgets 3.1.3 was built in Windows 7:

Code: Select all

REM Change the current working directory to C:\wxWidgets-3.1.3\build\msw.
cd  C:\wxWidgets-3.1.3\build\msw

Echo *** Compile the debug version >LogDeb.txt
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1 USE_OPENGL=1 VENDOR=cb CXXFLAGS="-fno-keep-inline-dllexport" clean
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1 USE_OPENGL=1 VENDOR=cb CXXFLAGS="-fno-keep-inline-dllexport" >LogDeb.txt 2>&1

Echo *** Compile the release version >LogRel.txt
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 USE_OPENGL=1 VENDOR=cb CXXFLAGS="-fno-keep-inline-dllexport" clean
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 USE_OPENGL=1 VENDOR=cb CXXFLAGS="-fno-keep-inline-dllexport" >>LogRel.txt 2>&1

stahta01
Super wx Problem Solver
Super wx Problem Solver
Posts: 345
Joined: Fri Nov 03, 2006 2:00 pm

Re: Undefined Reference Errors

Post by stahta01 » Fri Feb 28, 2020 3:22 am

You have looked at "C:\Software\Designer\src\JunctionCap.cpp|332" to see what the method being called is, right?

Tim S.

spflanze
Earned some good credits
Earned some good credits
Posts: 129
Joined: Tue Feb 15, 2011 10:02 pm

Re: Undefined Reference Errors

Post by spflanze » Fri Feb 28, 2020 11:04 pm

I believe I know what is happening. Prior to the undefined reference errors, I get warnings such as:

Code: Select all

C:\Engineering_Software\TIA Designer\src\Utilities.cpp|2072|warning: 'void wxGridfData::UpdateDisplay(int, int, wxGridCellChoiceEditorExt*)' redeclared without dllimport attribute after being referenced with dll linkage|

C:\Engineering_Software\TIA Designer\src\Utilities.cpp|859|warning: 'bool wxGridfData::CreateGrid(int, int, wxGrid::wxGridSelectionModes)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]|

This is how the wxGridfData is declared in the header file:

Code: Select all

class WXDLLIMPEXP_ADV wxGridfData : public wxGrid
{
    void UpdateDisplay(
        int GridRow, ///< The cell's display grid row to be updated.
        int GridCol ///< The cell's display grid column to be updated.
    );
}
This is how it is defined in the .cpp file:

Code: Select all

void wxGridfData::UpdateDisplay(
    int GridRow,
    int GridCol
{  
  ...
}
The warning is because the presence of WXDLLIMPEXP_ADV in the class definition causes it to expect the UpdateDisplay() method to be declared with something. That something is not WXDLLIMPEXP_ADV because the line:

Code: Select all

void WXDLLIMPEXP_ADV wxGridfData::UpdateDisplay(
gets an error. What is it expecting?

I believe that the warning means the method will not be available to the linker, and so the "undefined reference" errors.

Before upgrading to wxWidgets 3.1.3 from wxWidgets 3.1.2 I am pretty sure I had wxWidgets compiled with SHARED=0, and in Code::Blocks I did not have WXUSINGDLL defined in the Project => Compiler Settings => #defines (tab). WXUSINGDLL being undefined meant WXDLLIMPEXP_ADV was undefined, and so had no effect. Then wxWidgets linked statically.

I would like to get dynamic linking working. But if I cannot soon, I will revert to static.

I have read the comments in file dlimpexp.h and am now aware that WXDLLIMPEXP_ADV is deprecated. I intent replace all instances of it with WXDLLIMPEXP_CORE , which is what line 150 of that file does.

stahta01
Super wx Problem Solver
Super wx Problem Solver
Posts: 345
Joined: Fri Nov 03, 2006 2:00 pm

Re: Undefined Reference Errors

Post by stahta01 » Sat Feb 29, 2020 12:07 am

Remove the use of WXDLLIMPEXP_ADV from all of your code; if you are not writing an DLL you should have no WXDLLIMPEXP_ in your code!

Tim S.

spflanze
Earned some good credits
Earned some good credits
Posts: 129
Joined: Tue Feb 15, 2011 10:02 pm

Re: Undefined Reference Errors

Post by spflanze » Sat Feb 29, 2020 1:01 am

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 from them. Is it going to be possible to derive a class from dynamically linked wxWidgets? Must a class derived from a dynamically linked class also be dynamically linked?

If I do not define WXUSINGDLL, then WXDLLIMPEXP_CORE becomes blank, and has the same effect as deletion.

Lines 126 - 146 of the file dlimpexp.h.

Code: Select all

#ifdef WXMAKINGDLL_CORE
#    define WXDLLIMPEXP_CORE WXEXPORT
#    define WXDLLIMPEXP_DATA_CORE(type) WXEXPORT type
#    if defined(HAVE_VISIBILITY)
#        define WXDLLIMPEXP_INLINE_CORE WXEXPORT
#    else
#        define WXDLLIMPEXP_INLINE_CORE
#    endif
#elif defined(WXUSINGDLL)
#    define WXDLLIMPEXP_CORE WXIMPORT
#    define WXDLLIMPEXP_DATA_CORE(type) WXIMPORT type
#    if defined(HAVE_VISIBILITY)
#        define WXDLLIMPEXP_INLINE_CORE WXIMPORT
#    else
#        define WXDLLIMPEXP_INLINE_CORE
#    endif
#else /* not making nor using DLL */
#    define WXDLLIMPEXP_CORE
#    define WXDLLIMPEXP_DATA_CORE(type) type
#    define WXDLLIMPEXP_INLINE_CORE
#endif
Last edited by spflanze on Sat Feb 29, 2020 3:16 pm, edited 1 time in total.

stahta01
Super wx Problem Solver
Super wx Problem Solver
Posts: 345
Joined: Fri Nov 03, 2006 2:00 pm

Re: Undefined Reference Errors

Post by stahta01 » Sat Feb 29, 2020 5:41 am

spflanze wrote:
Sat Feb 29, 2020 1:01 am
I still have the wxWidgets library is still 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 from them. Is it going to be possible to derive a class from dynamically linked wxWidgets? Must a class derived from a dynamically linked class also be dynamically linked?
False!

Tim S.

stahta01
Super wx Problem Solver
Super wx Problem Solver
Posts: 345
Joined: Fri Nov 03, 2006 2:00 pm

Re: Undefined Reference Errors

Post by stahta01 » Sat Feb 29, 2020 6:20 am

Just looked at all the wxWidgets samples.

And, the samples artprov and widgets use WXDLLIMPEXP_FWD_CORE to forward declare classes.

The only one to use WXDLLIMPEXP_BASE is xti and it only uses it in a few places.

So, remove the WXDLLIMPEXP_ macros who should not be WXDLLIMPEXP_FWD_ macros and rebuild your project!

If you still have errors post them. And look at the xti sample for hints on what to do.

NOTE: Non of the other samples used WXDLLIMPEXP_ macros.

Tim S.

spflanze
Earned some good credits
Earned some good credits
Posts: 129
Joined: Tue Feb 15, 2011 10:02 pm

Re: Undefined Reference Errors

Post by spflanze » Sat Feb 29, 2020 10:57 pm

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:

Code: Select all

C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: i386 architecture of input file `obj\Debug\TIA Designer\resource.res' is incompatible with i386:x86-64 output
collect2.exe: error: ld returned 1 exit status
I do not know what to do about this error.

The entire build log is attached.
Attachments
Build Log 2020-02-29.txt
(159.29 KiB) Downloaded 5 times

stahta01
Super wx Problem Solver
Super wx Problem Solver
Posts: 345
Joined: Fri Nov 03, 2006 2:00 pm

Re: Undefined Reference Errors

Post by stahta01 » Sat Feb 29, 2020 11:48 pm

I would look at resource.rc for problems.

Edit: I have no idea if adding resource compiler option of "-m64" will fix the issue but it is worth trying.
Edit2: -m64 is not valid for the resource compiler.
Edit3: "-F pe-x86-64" option might work.


Tim S.

spflanze
Earned some good credits
Earned some good credits
Posts: 129
Joined: Tue Feb 15, 2011 10:02 pm

Re: Undefined Reference Errors

Post by spflanze » Sun Mar 01, 2020 12:58 am

Here what a text editor shows is in resource.rc:

Code: Select all

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 got the error:

Code: Select all

||=== Build: Debug in TIA Designer (compiler: TDM-GCC-64) ===|
||Can't detect target endianness and architecture.|
C:\Engineering_Software\TIA Designer\src\opamp.cpp||In constructor 'OpAmp::OpAmp(wxComboBoxDataFile*, wxHyperlinkCtrlDataFile*, wxHyperlinkCtrlDataFile*, wxTextCtrlDataFile*, wxTextCtrlDataFile*, wxGridfData*, wxGridfData*, wxGridfData*, wxGridfData*, wxGridfData*, wxGridfData*, wxGridfData*, wxGridfData*)':|

stahta01
Super wx Problem Solver
Super wx Problem Solver
Posts: 345
Joined: Fri Nov 03, 2006 2:00 pm

Re: Undefined Reference Errors

Post by stahta01 » Sun Mar 01, 2020 3:46 am

spflanze wrote:
Sun Mar 01, 2020 12:58 am
Here what a text editor shows is in resource.rc:

Code: Select all

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 "aaaa" part is normal.
The "-F pe-x86-64" resource option got the error:

Code: Select all

||=== Build: Debug in TIA Designer (compiler: TDM-GCC-64) ===|
||Can't detect target endianness and architecture.|
C:\Engineering_Software\TIA Designer\src\opamp.cpp||In constructor 'OpAmp::OpAmp(wxComboBoxDataFile*, wxHyperlinkCtrlDataFile*, wxHyperlinkCtrlDataFile*, wxTextCtrlDataFile*, wxTextCtrlDataFile*, wxGridfData*, wxGridfData*, wxGridfData*, wxGridfData*, wxGridfData*, wxGridfData*, wxGridfData*, wxGridfData*)':|
You now need an expert on your compiler to figure out the error.
I think you need to add a compiler option; but, I have no idea what option you need.

Edit: I have never really used options like these -mtune=core2 -march=nocona and these are related to your new problem.

Tim S.

stahta01
Super wx Problem Solver
Super wx Problem Solver
Posts: 345
Joined: Fri Nov 03, 2006 2:00 pm

Re: Undefined Reference Errors

Post by stahta01 » Mon Mar 02, 2020 12:41 am

Just did some googling and windres is likely raising this error; so, trying other options for resource compiler is worth trying.

What MSys2 MinGW returns

Code: Select all

$ wx-config --rescomp
windres --include-dir C:/msys64/mingw64/include/wx-3.0 --define __WIN32__ --define __GNUWIN32__ --define WX_CPU_AMD64
I am guessing you need to add "--define WX_CPU_AMD64"

Tim S.

spflanze
Earned some good credits
Earned some good credits
Posts: 129
Joined: Tue Feb 15, 2011 10:02 pm

Re: Undefined Reference Errors

Post by spflanze » Mon Mar 02, 2020 1:45 am

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:

Code: Select all

COMPILER_PATH=C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/;C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../libexec/gcc/;C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/
LIBRARY_PATH=C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/;C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/;C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/;C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib/;C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/;C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../
COLLECT_GCC_OPTIONS='-pipe' '-mthreads' '-Winvalid-pch' '-v' '-D' '__GNUWIN32__' '-D' '__WXMSW__' '-D' 'wxUSE_UNICODE' '-D' 'WX_CPU_AMD64' '-g' '-D' '__WXDEBUG__' '-D' 'WXUSINGDLL' '-Wfatal-errors' '-Wall' '-m64' '-Wno-deprecated-declarations' '-I' '..\Libraries\cminpack-1.3.6' '-I' 'C:\wxWidgets-3.1.3\include' '-I' 'include' '-I' 'C:\wxWidgets-3.1.3\lib\gcc_dll\mswud' '-I' 'C:\wxWidgets-3.1.3\include' '-I' 'C:\wxWidgets-3.1.3\' '-I' 'C:\wxWidgets-3.1.3' '-I' 'C:\wxWidgets-3.1.3\include' '-c' '-o' 'obj\Debug\TIA Designer\TIA_DesignerMain.o' '-shared-libgcc' '-mtune=core2' '-march=nocona'
C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: i386 architecture of input file `obj\Debug\TIA Designer\resource.res' is incompatible with i386:x86-64 output
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (1 minute(s), 53 second(s))
I do not have wx-config.exe in the Code::Blocks installation. I did find it in my Code:Blocks 17.12 files, but this not what I am using because I want 64 bits. I am using a nightly build of Code::Blocks . The information:

Code: Select all

Name             : Code::Blocks
Version          : svn-r11951
SDK Version      : 1.47.0
Scintilla Version: 3.7.5
Built: Jan 19, 2020

wxWidgets Library (wxMSW port)
Version 3.1.3 (Unicode: wchar_t, debug level: 1),
compiled at Nov  1 2019 18:53:26

Runtime version of toolkit used is 6.1.

stahta01
Super wx Problem Solver
Super wx Problem Solver
Posts: 345
Joined: Fri Nov 03, 2006 2:00 pm

Re: Undefined Reference Errors

Post by stahta01 » Mon Mar 02, 2020 2:38 am

spflanze wrote:
Mon Mar 02, 2020 1:45 am
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:

Code: Select all

COMPILER_PATH=C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/;C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../libexec/gcc/;C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/
LIBRARY_PATH=C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/;C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/;C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/;C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib/;C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/;C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../
COLLECT_GCC_OPTIONS='-pipe' '-mthreads' '-Winvalid-pch' '-v' '-D' '__GNUWIN32__' '-D' '__WXMSW__' '-D' 'wxUSE_UNICODE' '-D' 'WX_CPU_AMD64' '-g' '-D' '__WXDEBUG__' '-D' 'WXUSINGDLL' '-Wfatal-errors' '-Wall' '-m64' '-Wno-deprecated-declarations' '-I' '..\Libraries\cminpack-1.3.6' '-I' 'C:\wxWidgets-3.1.3\include' '-I' 'include' '-I' 'C:\wxWidgets-3.1.3\lib\gcc_dll\mswud' '-I' 'C:\wxWidgets-3.1.3\include' '-I' 'C:\wxWidgets-3.1.3\' '-I' 'C:\wxWidgets-3.1.3' '-I' 'C:\wxWidgets-3.1.3\include' '-c' '-o' 'obj\Debug\TIA Designer\TIA_DesignerMain.o' '-shared-libgcc' '-mtune=core2' '-march=nocona'
C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: i386 architecture of input file `obj\Debug\TIA Designer\resource.res' is incompatible with i386:x86-64 output
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (1 minute(s), 53 second(s))
I do not have wx-config.exe in the Code::Blocks installation. I did find it in my Code:Blocks 17.12 files, but this not what I am using because I want 64 bits. I am using a nightly build of Code::Blocks . The information:

Code: Select all

Name             : Code::Blocks
Version          : svn-r11951
SDK Version      : 1.47.0
Scintilla Version: 3.7.5
Built: Jan 19, 2020

wxWidgets Library (wxMSW port)
Version 3.1.3 (Unicode: wchar_t, debug level: 1),
compiled at Nov  1 2019 18:53:26

Runtime version of toolkit used is 6.1.
Did you or did you not add that setting to the Resource Compiler?
Edit: The compiler settings is the wrong place!

Edit2: Either change the toolchain settings to "windres.exe --define WX_CPU_AMD64" without the double quotes.
Or add "--define WX_CPU_AMD64" to [Other Resource Compiler Options]
Or if using a recent SVN build of Code::Blocks I believe there is a place for Resource Compiler defines.

Tim S.

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 3893
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Undefined Reference Errors

Post by ONEEYEMAN » Mon Mar 02, 2020 3:50 pm

Hi,
2OP:
Can you build and run the "minimal" sample?
If you are - can you post the compilation lines it uses to produce the binary? Then we can possibly figure out what the problem is...

Thank you.

Post Reply