User forums > Using Code::Blocks
Building other projects
Decrius:
So, some projects do not provide plug'n'play files (pre-build library files) to work with (like ENet), so I have to build it myself. Often it gives me lots of errors because CodeBlocks is slightly different then VisualStudio (atleast, the compilers they use). This time not, so far...
What I get: Please select a host to "run" a library...
I searched on this forum, and someone said "go to this config window", and there I could choose a "host executable". What IS a host executable? What does it DO? And more important, which .exe should I choose, as its obviously not notepad.exe
I didn't got that to work, though it DID create a .a file, I put it in lib/ and linked to it in my project, getting lots of undefined reference errors, so I guess the .a file is not good =/
Any help on this one would be much appreciated :)
Decrius
Decrius:
Nobody knows? How could this be so difficult/barely documentated anyways? It's quite important as most libraries don't come with the plug'n'play libraries.
dmoore:
I have no idea what you mean by plug'n'play library (a self executing library?). Irrespective of IDE, you won't to be able to "run" or "debug" a library directly, but you can run or debug a program or process that calls into your library (and, if debugging, step through the library routines).
you should be able to link to any library binaries that you build (.dll/.a) without errors. try switching on compiler logging so that you can see the full command lines being passed to gcc. try those issuing those same commands at the command line yourself.
other people might be able to help if you provide more info on the errors and the project structure
Decrius:
I did: I cannot build my own library files.
With plugnplay I mean: you put the libraries in a directory, link to them and you got it running. Some projects do not provide those libraries but only its sources, therefore I need to build it myself. "You need a host exectuable to "run" a library..." thats the error I get, even if I start my own library project =/.
Seronis:
Well it means exactly what it says. The project you appear (by my understanding) to be talking about creates a library and does not create a program. So you cant execute it. Which is normal behaviour as libraries are not executable on their own. So build your library, then create a project that -uses- the library.
Sorry if im misunderstanding your problem but this it what it seems you are talking about.
Navigation
[0] Message Index
[#] Next page
Go to full version