Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: Audrey on March 17, 2021, 11:48:23 am

Title: cannot find -1C:\wxWidgets-3.1.3?
Post by: Audrey on March 17, 2021, 11:48:23 am
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.
Title: Re: cannot find -1C:\wxWidgets-3.1.3?
Post by: Miguel Gimenez 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
Title: Re: cannot find -1C:\wxWidgets-3.1.3?
Post by: AndrewCot on March 18, 2021, 11:05:31 pm
For wxWidget GUI design/layout have a look at wxSmith in codeblocks.