Search found 114 matches

by tuk1
Sun Apr 16, 2023 6:33 pm
Forum: Compiler / Linking / IDE Related
Topic: fatal error LNK1120: 895 unresolved externals
Replies: 28
Views: 2675

Re: fatal error LNK1120: 895 unresolved externals

Please carefully re-read what I wrote in my previous reply, then carefully read what doublemax just posted. Now one more time (and hopefully the last time): CRT AND WX ARE 2 DIFFERENT THINGS!!! I re-read your post several times but was unable to grasp your point in the context of the problem so no ...
by tuk1
Sun Apr 16, 2023 2:25 pm
Forum: Compiler / Linking / IDE Related
Topic: fatal error LNK1120: 895 unresolved externals
Replies: 28
Views: 2675

Re: fatal error LNK1120: 895 unresolved externals

Do you mean the library needs to be built: SHARED=1 ? To be honest the manual is clear as mud, pick a word: dynamic or shared and stick with it and when you write a manual assume the reader is doing for the first time, if it only make sense once you already know the answer then what is the point? Bu...
by tuk1
Sun Apr 16, 2023 1:57 pm
Forum: Compiler / Linking / IDE Related
Topic: fatal error LNK1120: 895 unresolved externals
Replies: 28
Views: 2675

Re: fatal error LNK1120: 895 unresolved externals

The libraries: x64 Native Tools Command Prompt for VS 2022 ->cd /d %WXWIN%\build\msw ->nmake /f makefile.vc BUILD=release TARGET_CPU=X64 The project: proj.PNG The manual: By default, DLLs are not built (SHARED=0). --- I've rebuilt wx library as shown above to make sure, then rebuilt again with share...
by tuk1
Sat Apr 15, 2023 7:32 pm
Forum: Compiler / Linking / IDE Related
Topic: fatal error LNK1120: 895 unresolved externals
Replies: 28
Views: 2675

Re: fatal error LNK1120: 895 unresolved externals

I get we shouldn't do it but in terms of 'proof of concept' how do we actually do it? If I reset the project back to the exe requiring the runtime to be installed on the target machine and rebuild the wx library(SHARED = 0 by default), it works! C/C++ > Code Generation > Runtime Library Multi-thread...
by tuk1
Sat Apr 15, 2023 4:54 pm
Forum: Compiler / Linking / IDE Related
Topic: fatal error LNK1120: 895 unresolved externals
Replies: 28
Views: 2675

Re: fatal error LNK1120: 895 unresolved externals

I was using the msvc one: Developer Command Prompt for VS 2022 But, apparently for wx at least you have to use the specific bit version for the build: x64 Native Tools Command Prompt for VS 2022 ---- Hopefully this is the last nag... To build a x64 release project where all the dependencies are incl...
by tuk1
Sat Apr 15, 2023 8:10 am
Forum: Compiler / Linking / IDE Related
Topic: fatal error LNK1120: 895 unresolved externals
Replies: 28
Views: 2675

Re: fatal error LNK1120: 895 unresolved externals

I got wxglade working on VirtualBox with Linux Mint, like you say that will also be handy further down the road... ----------- Circling back to the original build issue, there are now more clues which narrow things down... So to recap, building wx using the commands below leads to 900 link errors wh...
by tuk1
Fri Apr 14, 2023 4:52 pm
Forum: Compiler / Linking / IDE Related
Topic: fatal error LNK1120: 895 unresolved externals
Replies: 28
Views: 2675

Re: fatal error LNK1120: 895 unresolved externals

I have successfully been using PyInstaller for one of my small programs. Maybe on his machine, but following the official guide on a clean machine it doesn't work, falls over on trying to import wx and when trying to fix that by pip installing wxPython that also falls over halfway through... just d...
by tuk1
Fri Apr 14, 2023 11:43 am
Forum: Compiler / Linking / IDE Related
Topic: fatal error LNK1120: 895 unresolved externals
Replies: 28
Views: 2675

Re: fatal error LNK1120: 895 unresolved externals

Thanks OEM! How easy is it go back and forth between wxglade and msvs? ...inevitably the wxglade output/gui c++ files will need to be updated while persisting any manual edits/additions. Is there any way to import the existing db output/gui c++ files? ...or will I have to rebuild those gui in wxglad...
by tuk1
Thu Apr 13, 2023 5:46 pm
Forum: Compiler / Linking / IDE Related
Topic: fatal error LNK1120: 895 unresolved externals
Replies: 28
Views: 2675

Re: fatal error LNK1120: 895 unresolved externals

Did you successfully build wxWidgets as 64-bit library? Can you successfully build and execute 64-bit minimal sample in Release mode? All you do is to open the wxWidgets\build\msw\wx_vc15.sln. Go to Build -> Batch Build and Click "Select All", then "Build" After it is successful...
by tuk1
Tue Apr 11, 2023 6:10 pm
Forum: Compiler / Linking / IDE Related
Topic: fatal error LNK1120: 895 unresolved externals
Replies: 28
Views: 2675

Re: fatal error LNK1120: 895 unresolved externals

From you original post I made a presumption that you didn't use it and use plain Windows application wizard. The op is a simplified version of a complicated situation. I was hoping the brief outline and the link errors would be enough to identify the issue. Are you using MSVC compiler with DialogBl...
by tuk1
Tue Apr 11, 2023 1:18 pm
Forum: Compiler / Linking / IDE Related
Topic: fatal error LNK1120: 895 unresolved externals
Replies: 28
Views: 2675

Re: fatal error LNK1120: 895 unresolved externals

Im a little confused by your point in the context of what has already been stated:

The project in question was originally built using DialogBlocks configured as 'debug x86' which does work.


..and I dont use minGW only db and vs.
by tuk1
Sun Apr 09, 2023 5:48 pm
Forum: Compiler / Linking / IDE Related
Topic: fatal error LNK1120: 895 unresolved externals
Replies: 28
Views: 2675

Re: fatal error LNK1120: 895 unresolved externals

When creating a new db project there is a tick box for 'debug', im assuming unticked is 'release' but nothing regarding x86/x64 and the new project options are just the same for tweaking an existing project. Surely if the debug x86 version of a wx project builds and runs in msvs then building other ...
by tuk1
Sat Apr 08, 2023 7:19 am
Forum: Compiler / Linking / IDE Related
Topic: fatal error LNK1120: 895 unresolved externals
Replies: 28
Views: 2675

Re: fatal error LNK1120: 895 unresolved externals

The project in question was originally built using DialogBlocks configured as 'debug x86' which does work. I then created a new 'release x64' msvs project and copied across the c++ source files(incl. wx gui files) with the aim to reconfigure to: 'release x64'. I was thinking maybe the project has to...
by tuk1
Fri Apr 07, 2023 3:40 pm
Forum: Compiler / Linking / IDE Related
Topic: fatal error LNK1120: 895 unresolved externals
Replies: 28
Views: 2675

fatal error LNK1120: 895 unresolved externals

I'm getting a lot of errors when trying to build a project. I tried PB's steps( https://forums.wxwidgets.org/viewtopic.php?p=196105#p196105 ) but still no cigar. --------------------- Project Start with using the "Windows Desktop Wizard" to create a new project (from menu File/New/Project)...
by tuk1
Sun Mar 20, 2022 12:12 pm
Forum: C++ Development
Topic: XRC: Correct ctor args for wxListCtrl subclass?
Replies: 1
Views: 188

Re: XRC: Correct ctor args for wxListCtrl subclass?

Finally got to the bottom of this problem. In that case, wxXmlResource will create an instance of the specified subclass (MyTextCtrl in the example above) instead of the class (wxTextCtrl above) when loading the resource. However, the rest of the object's loading (calling its Create() method, settin...