Author Topic: cannot find -1C:\wxWidgets-3.1.3?  (Read 5643 times)

Audrey

  • Guest
cannot find -1C:\wxWidgets-3.1.3?
« on: March 17, 2021, 11:48:23 am »
Hi
I am following the PB's Guide to starting with xwWidgets on Microsoft Windows with MinGW and Code::Blocks. I am using Windows10, on a 64 bit system. I have set WXWIN correctly (CMD.exe and cd %WXWIN" works OK).
I am using wxWidgets-3.1.3, Code::Blocks 20.03 and C:\mingw-w64\i686-8.1.0-posix-sjlj-rt_v6-rev0
I have gone through the whole process and successfully run the wxWidgets minimal sample prior to using Code:Blocks.
However when trying to compile and run the test app in Code::Blocks I get an error:
ld.exe cannot find -1C:\wxWidgets. I have double checked all of the options I can see and they all look OK. Also searched for this error message but not found it anywhere.
I assume I am missing some directive but am unable to find it.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1634
Re: cannot find -1C:\wxWidgets-3.1.3?
« Reply #1 on: March 17, 2021, 02:45:56 pm »
The switch for searching in a directory is letter L, not number 1. Also, C:\wxWidgets don't look like a valid library directory, it should be similar to C:\wxWidgets\lib\gcc_dll

Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 678
Re: cannot find -1C:\wxWidgets-3.1.3?
« Reply #2 on: March 18, 2021, 11:05:31 pm »
For wxWidget GUI design/layout have a look at wxSmith in codeblocks.