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: 19244
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: 19244
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 Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts PuTTY - "User is not a surrogate... IBM Tools 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
Search our Forums:

Back to Top