Welcome, Guest. Please
login
or
register
.
Forums
Forums
Board
Topic
Home
Today's Posts
Gallery
Login
Register
Amiga.org
»
Operating System Specific Discussions
»
Amiga OS
»
Amiga OS -- Development
»
Why doesn't this code starts automatically (full example with ports and message)...Also SAS linking
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Why doesn't this code starts automatically (full example with ports and message)...Also SAS linking (Read 3974 times)
Description:
0 Members and 1 Guest are viewing this topic.
Sidewinder
Full Member
Join Date: Mar 2002
Posts: 241
Re: Why doesn't this code starts automatically (full example with ports and message)...Also SAS linking
«
on:
September 24, 2004, 05:53:49 PM »
What is the undefined symbol that the linker complains about?
Usually the easiest way to link is to add "link" to the sc command:
sc myprog.c myprog link
Logged
Sidewinder
Sidewinder
Full Member
Join Date: Mar 2002
Posts: 241
Re: Why doesn't this code starts automatically (full example with ports and message)...Also SAS link
«
Reply #1 on:
September 25, 2004, 12:22:49 AM »
Just add your object files in the command:
sc myprog.c code1.o code2.o link
or you can use slink with the object files:
slink myprog.o code1.o code2.o to myprog
will link and create the executable "myprog".
Logged
Sidewinder
Sidewinder
Full Member
Join Date: Mar 2002
Posts: 241
Re: Why doesn't this code starts automatically (full example with ports and message)...Also SAS link
«
Reply #2 on:
September 25, 2004, 08:19:13 PM »
To link with and external library just add the library name in with the object modules:
slink myprog.o module1.o module2.o mylibrary.lib to myprogram
or from sc:
sc myprog.c mylibrary.lib link
Logged
Sidewinder
Print
Pages: [
1
]
Go Up
« previous
next »
Amiga.org
»
Operating System Specific Discussions
»
Amiga OS
»
Amiga OS -- Development
»
Why doesn't this code starts automatically (full example with ports and message)...Also SAS linking
There was an error while thanking
Thanking...