flat assembler
Message board for the users of flat assembler.

Index > Windows > How to include external libraries?

Author
Thread Post new topic Reply to topic
wbutterdog



Joined: 01 Oct 2025
Posts: 7
wbutterdog 03 Oct 2025, 11:38
Specifically GLFW in order to create a window and etc.

What do I need to do?

thanks! Very Happy
Post 03 Oct 2025, 11:38
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 4288
Location: vpcmpistri
bitRAKE 03 Oct 2025, 13:58
Static libraries are merged by the linker - you'll need to create object files compatible with the libraries and linker. Also, you'll need to convert the API constants into a compatible form for the assembler.

i.e.
Code:
#define GLFW_HAT_RIGHT_UP           (GLFW_HAT_RIGHT | GLFW_HAT_UP)    
... to ...
Code:
GLFW_HAT_RIGHT_UP = GLFW_HAT_RIGHT or GLFW_HAT_UP    
Post 03 Oct 2025, 13:58
View user's profile Send private message Visit poster's website Reply with quote
wbutterdog



Joined: 01 Oct 2025
Posts: 7
wbutterdog 03 Oct 2025, 14:28
Thanks, appreciate it!
Post 03 Oct 2025, 14:28
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.