[great-users] user code library
Daniel Balasubramanian
daniel at isis.vanderbilt.edu
Tue Apr 19 14:50:27 CDT 2005
Hi Abdul,
1. You didn't see the #include <algorithm> because it is put into a temporary header file created in the %GREAT_PATH%/tmp directory. This header file is compiled with the attribute mapping code into a dll that is used during the transformation. If you open the %GREAT_PATH%/tmp directory, you can take a look at the code.
2. If you want to include more than one library or include file, you can use a comma as the delimiter.
3. You are correct, you do not need to use < > around the name of the include file(s), simply the name of the file will do (in the generated header file, there will be " " around the name you gave).
Thanks,
Daniel
-----Original Message-----
From: Abdullah Sowayan
Sent: Tue 4/19/2005 1:05 PM
To: great-users
Cc:
Subject: [great-users] user code library
Hi,
I noticed that there is a new feature in great. The "UserCodeLibrary."
The UserCodeLibrary graphical object has the following attributes:
1) Include Files
2) Library Files
3) Include Directories
4) Library Directories
Say I'm interested in using some of the features of the standard C++ algorithm library ( #include <algorithm> ). I tried putting #include <algorithm> but I got an error. So, I just put 'algorithm' in there and things worked fine. However, when I looked at the generated code, there was no #include <algorithm>.
I did not specify the Include directories because the compiler has the path for all standard C++ libraries.
Also, if I wanted to include more than one library do I seperate them by a white space, a comma, semi-colon?
Thanks,
Abdul
More information about the great-users
mailing list