29 March 2016, 17:22 | #1 |
Registered User
Join Date: Feb 2016
Location: London / UK
Posts: 166
|
Linking errors with CardResource
Hey all
I'm trying to write a little program to interact with PCMCIA cards (really, just query them for information) and I've run into an odd issue. Whether I use SAS/C or ADE's gcc, or an m68k gcc cross compiling toolchain on Linux, I'm getting a linker error relating to the CardResource symbol being undefined. I'm not sure what I should be linking to define it, but at least in the case of both gcc's, the symbol is defined in libamiga.lib that gets linked. I've pushed up the code to https://github.com/cmsj/cardInfo and in its current form it should compile with GCC, it just won't link. Am I missing something really stupid here? |
29 March 2016, 17:51 | #2 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,002
|
Change
Code:
APTR cardRes; Code:
struct Library *CardResource; You also have to ReleaseCard() at the end of your program. |
29 March 2016, 19:13 | #3 |
Registered User
Join Date: Feb 2016
Location: London / UK
Posts: 166
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Linking errors with vbcc when not using C99 | tygre | Coders. C/C++ | 5 | 25 December 2015 21:01 |
Linking problem | arti | Coders. C/C++ | 2 | 23 January 2015 19:03 |
what cable do i need for linking two amigas? | trydowave | support.Hardware | 11 | 13 July 2013 14:35 |
Devpac Linking Problems | Steve | Coders. General | 8 | 10 December 2002 11:37 |
|
|