Author Topic: Can't build static library  (Read 18020 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Can't build static library
« Reply #15 on: December 17, 2012, 03:25:49 pm »
''And why do you say it's incorrect to state that there is nothing to be done, if there is no source file included in your project, that can be compiled ?'' How is then that header-only libraries exist? I've seen one before.
Harhar... Sorry, but you are really missing the basics here. So what do you want to do out of this library and the header files in the project? Another library? How shall this work?

Something needs to make use of the library. Thats how all SDK's work, btw: They provide an interface (declared in the header files) and the already compiled implementation (the library). So if you want to use it you need to create at least a "main" for another library which requires source code (files). If you don't provide more source code, C::B is completely right: Nothing to be done.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Can't build static library
« Reply #16 on: December 17, 2012, 04:02:35 pm »
So, to summarize:
  • asked a question on Code::Blocks forums, not giving necessary details
  • got a helpful answers despite no details
  • did not listen, complained at another site how un-helpful the Code::Blocks forums are
  • did not listen there either
  • came back and still doesn't listen

How many more iterations do we need?  ;D
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."