×
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

Abaqus C++ API to access an ODB

Abaqus C++ API to access an ODB

Abaqus C++ API to access an ODB

(OP)
I'm trying to use c++ interface to access an output database.
I fetched viewer_tutorial.odb.
I wrote a source file named experiment.cpp with this code:

CODE

#include <odb_API.h>

int ABQmain(int argc, char **argv)
{
    odb_Odb& odb = openOdb("viewer_tutorial.odb");
    odb.close();
    return 0
}


Here is what I get in abaqus command window:

Quote:


C:\Documents and Settings\alorenzom\Documenti\HC3FEM\AbC++Api>abaqus make job=ex
periemnt user=experiment.cpp
ABAQUS JOB experiemnt
Begin Compiling User Post-Processing Program
6/21/2007 12:27:44 PM
Compiling: C:\Documents and Settings\alorenzom\Documenti\HC3FEM\AbC++Api\experim
ent.cpp
experiment.cpp
C:\ABAQUS\6.6-1\include\omi_types.h(6) : fatal error C1083: Cannot open include file: 'BaseTsd.h': No such file or directory
ABAQUS Error: Problem during compilation - C:\Documents and Settings\alorenzom\D
ocumenti\HC3FEM\AbC++Api\experiment.cpp
The ABAQUS Make execution procedure exited with errors

C:\Documents and Settings\alorenzom\Documenti\HC3FEM\AbC++Api>



Here there are compile and link parameters in abaqus env file:

Quote:


compile_cpp=['cl', '/c', '/nologo', '/W0', '/MD',
             '/TP', '/GX', '/DNDEBUG', '/DWIN32', '/DTP_IP', '/D_CONSOLE',
             '/DNTI', '/DFLT_LIC', '/DOL_DOC', '/D__LIB__', '/DHKS_NT',
             '/DFAR=', '/D_WINDOWS', '/O1', '/I%I']

compile_fortran=['ifort', '/c', '/Gm','/nologo', '/include:%I']

link_sl=['LINK', '/nologo', '/INCREMENTAL:NO', '/subsystem:console', '/machine:I386', '/NODEFAULTLIB:LIBC.LIB', '/DEFAULTLIB:OLDNAMES.LIB', '/DEFAULTLIB:LIBIFCOREMD.LIB', '/DEFAULTLIB:LIBIFPORTMD.LIB', '/DEFAULTLIB:LIBMMD.LIB', '/DEFAULTLIB:MSVCRT.LIB', '/DEFAULTLIB:kernel32.lib', '/DEFAULTLIB:user32.lib', '/DEFAULTLIB:advapi32.lib', '/FIXED:NO', '/dll', '/def:%E', '/out:%U', '%F', '%A', '%B', 'oldnames.lib', 'user32.lib', 'ws2_32.lib', 'netapi32.lib', 'advapi32.lib']

link_exe=['LINK', '/nologo', '/INCREMENTAL:NO', '/subsystem:console', '/machine:I386', '/NODEFAULTLIB:LIBC.LIB', '/DEFAULTLIB:OLDNAMES.LIB', '/DEFAULTLIB:LIBIFCOREMD.LIB', '/DEFAULTLIB:LIBIFPORTMD.LIB', '/DEFAULTLIB:LIBMMD.LIB', '/DEFAULTLIB:MSVCRT.LIB', '/DEFAULTLIB:kernel32.lib', '/DEFAULTLIB:user32.lib', '/DEFAULTLIB:advapi32.lib', '/FIXED:NO', '/LARGEADDRESSAWARE', '/out:%J', '%F', '%M', '%L', '%B', '%O', 'oldnames.lib', 'user32.lib', 'ws2_32.lib', 'netapi32.lib', 'advapi32.lib']


I'm using
Abaqus 6.6
Windows xp x86-32
Intel Visual Fortran Compiler 9.1

My chief wants we use c++ interface instead of ASI.
PLEASE HELP ME to understand how can I use c++ interface.

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