Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Hello, I\'m traying to release the project I did using wxWidget so I can run in

ID: 3812632 • Letter: H

Question

Hello, I'm traying to release the project I did using wxWidget so I can run in other systems, and when declare -static in the linker settings, i got the errors above, any idea how to add this libraries to my project? thanks

ld ud ld ld ld ld ld ld cannot find -1wx gtk2u xrc-3.0 cannot find -1wx gtk2u html -3.0 cannot find -1wx gtk2u ga-3.0 cannot find -1wx gtk2u adv-3.0 cannot find -1wx gtk2u core- 3.0 cannot find -1wx baseu xml. -3.0 cannot find -1wx baseu net -3.0 cannot find -1wx baseu-3.0 Build failed: 8 error(s), 80 warning (s) (0 minute(s), 6 second (s))

Explanation / Answer

In case the link breaks, here is a summary of the steps that helped me:

* * * * * *

Open Terminal and install Homebrew by inputting:

Then, input:

Open Xcode and create a Command Line Tool C++ project.

Back in Terminal, input:

Once inputted, copy everything outputted by the Terminal and place it into Other Linker Flags (found in Build Settings of your Xcode project).

At Terminal, input:

Again, copy everything outputted except this time place it into Other C++ Flags (do not erase what is currently in that section).

Then, of course don't forget to include wx/wx.h and don't forget to have at least an empty main function if you want it to run.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote