Welcome, Guest. Please login or register.

Author Topic: Why doesn't this code starts automatically (full example with ports and message)...Also SAS linking  (Read 3973 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Sidewinder

  • Full Member
  • ***
  • Join Date: Mar 2002
  • Posts: 241
    • Show all replies
    • http://www.liquido2.com
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
Sidewinder
 

Offline Sidewinder

  • Full Member
  • ***
  • Join Date: Mar 2002
  • Posts: 241
    • Show all replies
    • http://www.liquido2.com
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".
Sidewinder
 

Offline Sidewinder

  • Full Member
  • ***
  • Join Date: Mar 2002
  • Posts: 241
    • Show all replies
    • http://www.liquido2.com
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
Sidewinder