|
|
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Compiling own library in TheIDE (librarary as an output)
Compiling own library in TheIDE [message #53024] |
Mon, 10 February 2020 20:59  |
Lucas
Messages: 6 Registered: February 2019 Location: UK
|
Promising Member |
|
|
Hello.
I have recently decided to switch from Code::Blocks to TheIDE and I am developing a small library. I encountered problems while doing so. There are no templates when creating new project that would be suitable for libraries. I created empty project and I can not find any options to turn its output to a lib (I need both Windows and Linux). It is obviously complaining about a lack of main function. Its been really frustrating and I can not find any solution nowhere on this forum.
edit: I am interested in static libraries.
Lucas.
[Updated on: Mon, 10 February 2020 22:05] Report message to a moderator
|
|
|
|
|
|
Re: Compiling own library in TheIDE [message #53060 is a reply to message #53025] |
Tue, 18 February 2020 18:28   |
 |
mirek
Messages: 14255 Registered: November 2005
|
Ultimate Member |
|
|
Arvidas wrote on Tue, 11 February 2020 11:41Hi,
I am new in TheIDE, earlier i was using CodeBlocks but it is too bugy.
TheIDE is not intuitive, so i need a few answers.
I'm trying include directories to GLFW 3.3.2 library, and GLEW 2.1.0(i know it is inside TheIDE)
Setup -> Build methods -> INCLUDE directories(.h, .hpp) and -> LIB directories(.lib, .a)
I added in Package organizer link options: -lglfw3 -lgdi32 -lglew32s -lglu32 -lopengl32
but TheIDE can't see files.
Useful for you at this point is Setup/Verbose. If active, it will list complete commandlines while compiling, so that you will know what is going on.
Then it is probably better to add libraries directly as libraries instead of linker options. Load some U++ example, open package organizer and check e.g. the Core package. See how system libs are added...
Also: Check that you have added build method directories to the correct build method (the one you are using to compile).
Mirek
|
|
|
|
Goto Forum:
Current Time: Tue Apr 29 09:49:18 CEST 2025
Total time taken to generate the page: 0.03774 seconds
|
|
|