×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

reading output database from a C++ external application

reading output database from a C++ external application

reading output database from a C++ external application

(OP)
hi all,

I am trying to read an Abaqus output database .odb using an external C++ application. That means I want to write a C++ program that can access directly the .odb file without using the "abaqus make" compling procedure. I understood from the documentation that this is possible (scripting user's manual section 9.7) and i have to worry about link, and excutable libraries as well as header files. Now i have a small experience in this field and I did include the above in  my visual c++ project. i have the following error when compiling:
Compiling...
odb.cpp
c:\abaqus\6.5-1\cae\include\basictypes.h(172) : error C2059: syntax error : 'bad suffix on number'
c:\abaqus\6.5-1\cae\include\basictypes.h(172) : warning C4067: unexpected tokens following preprocessor directive - expected a newline
c:\abaqus\6.5-1\cae\include\basictypes.h(172) : warning C4067: unexpected tokens following preprocessor directive - expected a newline
c:\abaqus\6.5-1\cae\include\basictypes.h(192) : error C2059: syntax error : 'bad suffix on number'
c:\abaqus\6.5-1\cae\include\basictypes.h(192) : warning C4067: unexpected tokens following preprocessor directive - expected a newline
c:\abaqus\6.5-1\cae\include\basictypes.h(192) : warning C4067: unexpected tokens following preprocessor directive - expected a newline

i removed the lines causing errors in basitypes.h and i get a linking error:

linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/odb.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

Could you please elaborate on the procedure of accessing .odb from an external application? if possible please give details about the linking procedure in visual c++.

very much appreciated guys....

RE: reading output database from a C++ external application

Did you supply the path to the Abaqus' libraries in your project options?

RE: reading output database from a C++ external application

(OP)
hello xerf,

I did supply the path to Abaqus in my project settings. But i am not sure if i did so correctly. I am not that experienced with linking and compiling. did you ever worked this out? can you please tell me the steps of linking in visual c++.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources