| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Obj Files And Guidelines |
EB>I am desperately hoping somebody that can help me with this problem.
EB>I am trying to access an external function, ReadPort, which is
>contained in this source file "codeit.c": (Please note: I
stripped the
>function of a lot of code during my testing, just trying to get it to
>work.:) (Dont worry, its short):
EB>Here's the problem. I compile it into codeit.obj and then copy it to
>the guidelines directory, \guide\sys\ and I get the following error
>when guidelines goes to link:
EB>2029 unresolved external ReadPort() in Infinity.CPP
Ok, some of the weird things you did would never work anyways. But
there is a simple way to do this. Now, take your .h and .cpp file and
clean it up and make sure it is written like you would write any
normal code (take out any _export and etc.). Recompile it and move the
.h file to a directory included in your INCLUDE path (I use
BCOS2\INCLUDE) and then move your .obj file into the GUIDE\SYS
directory. Now, load up Guidelines. Under Edit (I believe) click on
edit external files. Use Add. Name it (no spaces), describe it, and
then ADD your .h file name and ADD your .obj file name. Make sure that
the radiobuttons below change to the appropriate file type
(.h,.lib,.obj, ETC.). Then generate->compile... It should work!
Michael Dougalss
___
.Mike's Mail Internet: MICHAEL.DOUGLASS{at}LCHANCE.SAT.TX.US
--- Maximus/2 2.01wb
* Origin: The Rock BBS--410Meg, i486/33, ZyXEL v32bis. (1:387/31)SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 413 430 SEEN-BY: 711/807 808 809 934 942 712/353 623 713/888 800/1 @PATH: 387/31 1102 3615/50 229/2 12/2442 711/409 54/54 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.