Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Changeman get multiple "Browse C... elixir1986 Compuware & Other Tools 4 Fri Jul 14, 2017 1:48 am
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us