25 March 2018, 19:47 | #41 | |
Banned
Join Date: Sep 2016
Location: UK
Posts: 2,917
|
Quote:
How is priority between those figured out? |
|
25 March 2018, 19:48 | #42 |
Semi-Retired
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 1,993
|
In adding -lauto you removed -lamiga.
|
25 March 2018, 19:49 | #43 | |
Banned
Join Date: Sep 2016
Location: UK
Posts: 2,917
|
My config file looks like..
Quote:
|
|
25 March 2018, 19:50 | #44 |
Banned
Join Date: Sep 2016
Location: UK
Posts: 2,917
|
|
25 March 2018, 20:49 | #45 | |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
|
Quote:
And is there in any reason to call vlink directly? Usually this is done via the frontend "vc", which gets all the required options and paths from the config file. Code:
vc +aos68k test.o -lauto -lamiga |
|
25 March 2018, 21:39 | #46 | |
Banned
Join Date: Sep 2016
Location: UK
Posts: 2,917
|
Quote:
|
|
25 March 2018, 22:10 | #47 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
|
Including amiga.lib into auto.lib wastes disk space with redundant data. And when using the assembler inlines from proto/xyz.h to call library functions you often don't have to link with amiga.lib at all.
|
25 March 2018, 22:16 | #48 |
Banned
Join Date: Sep 2016
Location: UK
Posts: 2,917
|
|
01 April 2018, 09:26 | #49 |
Banned
Join Date: Sep 2016
Location: UK
Posts: 2,917
|
OK i have a request / question about some of the new features in vbcc. The +aos68kr target seems like a great idea but i'm struggling to use it and it seems to be short on docs because its relatively new.
What i am trying to do? Create an amiga kernel module in C... I've managed to create the module but I cannot open any libraries in the vbcc compiled module without causing a crash. I figured that was because i need to keep my DosBase, SysBase etc as a local variable rather than a global but the linker complained about missing _SysBase and _DosBase when compiled with +aos68k(m). But when i try with +aos68kr the linker segmentation faults. Any ideas? Latest stable versions of all the tools. EDIT: I am not using -lauto or -lvc ... just -lamiga and trying to open graphics.library. |
01 April 2018, 11:33 | #50 |
Banned
Join Date: Sep 2016
Location: UK
Posts: 2,917
|
Ok i solved my issue...
I need to use explicit __OpenLibrary(mySysBase, "graphics.library"); rather than the nice handy OpenLibrary() method. I wonder if there should be (if there isnt already) a set of standard proto headers to make module / library development easier. There is so little docs on this that i found figuring this out extremely painful. What docs there are focus on SAS/C. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
vbcc IDE | iliak | Coders. C/C++ | 23 | 23 April 2019 17:27 |
vbcc V0.9e released | phx | News | 17 | 31 October 2016 21:18 |
vbcc 0.9d | phx | News | 43 | 13 July 2015 19:41 |
From gcc to vbcc. | Cowcat | Coders. General | 9 | 06 June 2014 14:45 |
Compiler: vbcc 0.8g patch 2 released | Paul | News | 0 | 29 November 2004 15:41 |
|
|