IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Error LNK2029:"_SUBPROGR@0"


IBM Mainframe Forums -> PC Guides & IT News
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Sat Jun 07, 2008 12:45 am
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
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

Moderator Emeritus


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

PostPosted: Sat Jun 07, 2008 3:02 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PC Guides & IT News

 


Similar Topics
Topic Forum Replies
No new posts Help on IMS -API URL migrating from P... IMS DB/DC 1
No new posts JES datasets IO Error ABENDS & Debugging 3
No new posts Error to invoke MPP program through B... IMS DB/DC 3
No new posts PKZIP error ZPFM121E and ZPCE009E JCL & VSAM 6
No new posts OpenPGP Decryption job getting LRECL ... IBM Tools 7
Search our Forums:

Back to Top