Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Error LNK2029:"_SUBPROGR@0"

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PC Guides & IT News
View previous topic :: :: View next topic  
Author Message
prashant_mq

New User


Joined: 29 Aug 2006
Posts: 24

PostPosted: Fri Jun 06, 2008 11:50 pm    Post subject: Error LNK2029:"_SUBPROGR@0"
Reply with quote

Hi

Platform:Windows

When I am trying to compile main program and subprogram using cob2 commad,I am gettting the following error.


error:LNK2029: "_SUBPROGR":unresolved external


Any help to get rid of this error is much appreciated.

Thanks
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Jun 07, 2008 12:45 am    Post subject:
Reply with quote

Hello,

Have you looked in the compiler documentation for directions on how to set up your compile to include called modules?

Does the called module yet exist? Can you make it a dynamic rather than static call?

Which compiler are you using?

The compiler vendor may have a support site that has many of this type of error and the resolution posted.
Back to top
View user's profile Send private message
prashant_mq

New User


Joined: 29 Aug 2006
Posts: 24

PostPosted: Sat Jun 07, 2008 2:05 am    Post subject: Reply to: Error LNK2029:"_SUBPROGR@0"
Reply with quote

If I try to make it a dynamic call,it gives an error "SUBPROGR.dll" COULD NOT be found in the COBPATH library.

I have set the COBPATH library to the directory where my code is located.

I am using visual age COB2 compiler.

sample command is
cob2 main.cbl SUBPROGR.cbl -qlib="c:\" -qTHREAD

Thanks
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Jun 07, 2008 3:02 am    Post subject:
Reply with quote

Hello,

Quote:
cob2 main.cbl SUBPROGR.cbl -qlib="c:\" -qTHREAD
It has been a long time since i compiled on a win-based system and i've never used visual age, but in your command it appears that you name the source module.

In our world, the executable had a different extension. If you look in your libraries, might your called module be there with a different extension?

You may want to open a trouble call with visual age as well.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PC Guides & IT News All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Reply MQ open error Vignesh Sid COBOL Programming 6 Thu Sep 07, 2017 6:02 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us