Welcome to the TRNSYS Users Forum.

The forum is a place where people can interact and have discussions about different topics involving the use of the TRNSYS software package. Here you can post topics for discussion or questions on using TRNSYS and get advice from other users or TRNSYS experts. This forum is not intended for detailed technical support. Users should contact their distributor’s hotline for such assistance.

Some tips for success on using the forum:

  • Follow the Forum Rules posted in Forum Administration.
  • There are categories for different types of topics and questions. Post your topic or question into the proper category.
  • Before posting a topic or question search the existing topics  (and the TRNSYS Users listserv archive or Post archive) to see if a similar topic or question has already been answered.
  • Use a descriptive topic name. Don’t use attention getting subjects, they don’t get attention and only annoy people.
  • State the version of TRNSYS and which add-ons your are using.
  • Include enough specific details for your topic of question to be answered. Just posting “Why am I getting an error?” without describing the specific error and what you are trying to do when you get the error will not receive a response that fixes your issue.
  • Remember when people help you, they are doing you a favor. Be patient, help people out by posting good descriptions of what you need help with, and be polite even if a response does not solve your issue.
  • Moderators may edit your post for clarity or move your topic to a more appropriate category.

Notifications
Clear all

Undefined reference to a LAPCK routine when compiling

1 Posts
2 Users
0 Reactions
462 Views
0
Topic starter

Dear all TRNSYS users,

Hi,

I've written a Fortran90 code to generate a new TRNSYS component. I incorporated the 'ddtsvb' routine from the LAPACK library in my code.

Nevertheless, during compilation, I'm facing an error message: "Undefined reference to 'ddtsvb'." I'm unsure about the steps required to resolve this issue.

I would greatly appreciate any assistance anyone could offer regarding this matter.

Warm regards,

Ali

 

1 Answer
0

@alish Are you using TypeStudio to compile your new Type? TypeStudio struggles with incorporating libraries (really anything that isn't a .f90 file) into its compilation.

If you're not already, I would recommend using a Fortran compiler within an integrated development environment (IDE) such as Microsoft Visual Studio to compile the code to include the LAPACK library. Visual Studio does not come with the TRNSYS package, but it is free to download and is the IDE we use to compile and debug TRNSYS projects. Some hints and tips are given in the ProgrammersGuide.pdf in the Documentation folder of your main TRNSYS18 directory. You can either compile your Type as a standalone .dll (ie MyType.dll), or you can compile your Type within the main TRNDll64.dll - sometimes the latter is more useful than the former. This YouTube video walks through how to compile your Type as part of the main TRNDll64.dll (skip ahead about 2 min):   https://youtu.be/fZ5-zSC094Q .

I haven't had occasion yet to incorporate a LAPACK routine into a TRNSYS type - I've played around with them in other projects, but not TRNSYS projects. I may have to find an excuse to do so, just to see if I run into any issues through Visual Studio 🙂

Share: