News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Problem with static library and wxwidgets

Started by woser, October 16, 2011, 11:11:48 AM

Previous topic - Next topic

woser

Hi, I have a problem with static library of sqlite, I compile it and it works ok on the console simple program, but when I use wxwidgets application it compile but no start, without any errors, I don't know where the problem is, but the same program when I compile by the VisualStudio 2010 work great.

MortenMacFly

Quote from: woser on October 16, 2011, 11:11:48 AM
I don't know where the problem is,
With such less information we won't know either. Sorry.

BTW: I had an issue yesterday compiling a lib for 64 bit which is dedicated to run under 64 bit. What did I do wrong?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

woser

Ok it is my project of static library of sqlite3, when I create a sample project wxwidgets application and link compiled static library it don't work i only add this to the linker ??


http://nasza-pralnia.pl/static.zip

MortenMacFly

Quote from: woser on October 16, 2011, 12:56:20 PM
http://nasza-pralnia.pl/static.zip
The included project file references only a "main.c" which is not present. Is has (in addition) no references to any of the wx/sqlite libs at all. I event don't understand why the term "wx" is there, there is no reference to wx at all, too. I am not sure what you are trying to do, but please check your project setup, think what files you want to compile / link and then do the projects setup accordingly.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

woser

Wx is only the name of project it doesn't matter library comiple and work with console application, but when I add this library to linker in sample wxwidgets application it doesn't work. I don't have any idea what I do wrong