94710
Structural
- May 16, 2007
- 21
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:
Here is what I get in abaqus command window:
Here there are compile and link parameters in abaqus env file:
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.
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:
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:
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.