Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Thread Closed: Drifted off-topic

???
08/01/03 09:22
Read: times


 
#51896 - Read this to get what i meant....
Responding to: ???'s previous message
I have 2 files namely "try1.a51" & "try2.a51" that were programmed using Keil Version2 software.

The main program and some simple subroutines were written in "try1.a51".

And i decided to write some other subroutines and placed them inside "try2.a51".

Next thing was that i want to call subroutines in the main program from the file, "try2.a51".
I did try placing the command, "$include try2.a51"
I also wrote all the names of the subroutines in the
"extrn code()" sentence which was in "try1.a51".
I saved it and tried to compile it, but it gave me this error message:
A51 FATAL ERROR -
FILE: try2.a51
ERROR: FILE DOES NOT EXIST
A51 TERMINATED.
Target not created.

May i know how could i do it? Or is there a much better way you guys can teach me? Or to write the subroutines in a file and save it in *.LIB format?

It seems to me that *.LIB file will be easier. Please help me.... advance thanks to whoever takes the time to read & understand what i am saying and your help rendered. ^-^

List of 24 messages in thread
TopicAuthorDate
How to call subroutines from other file?            01/01/70 00:00      
   RE: How to call subroutines from other file?            01/01/70 00:00      
      RE: How to call subroutines from other file?            01/01/70 00:00      
         RE: How to call subroutines from other file?            01/01/70 00:00      
            Read this to get what i meant....            01/01/70 00:00      
   RE: How to call subroutines from other file?            01/01/70 00:00      
      RE: How to call subroutines from other file?            01/01/70 00:00      
         RE: How to call subroutines from other file?            01/01/70 00:00      
            RE: How to call subroutines from other file?            01/01/70 00:00      
   RE: How to call subroutines from other file?            01/01/70 00:00      
   RE: How to call subroutines from other file?            01/01/70 00:00      
      RE: How to call subroutines from other file?            01/01/70 00:00      
   pushing and poping            01/01/70 00:00      
      RE: pushing and poping            01/01/70 00:00      
         RE: pushing and poping            01/01/70 00:00      
      RE: pushing and poping, nitin            01/01/70 00:00      
         RE: pushing and poping, nitin            01/01/70 00:00      
         RE: pushing and poping, nitin            01/01/70 00:00      
            RE: pushing and poping, nitin            01/01/70 00:00      
               RE: pushing and poping, nitin            01/01/70 00:00      
                  RE: pushing and poping, nitin            01/01/70 00:00      
                  RE: pushing and poping, nitin            01/01/70 00:00      
   RE: How to call subroutines from other file?            01/01/70 00:00      
   RE: How to call subroutines from other file?            01/01/70 00:00      

Back to Subject List