T O P I C R E V I E W |
avallett |
Posted - 09/11/2007 : 5:16:28 PM Origin Version (Select Help-->About Origin): 7.0 Operating System: Windows XP pro
I'm just getting started using the C programming features in Origin. Unfortunately the sample codes I've tried, and even the simple tutorial in the help files, won't build.
Three errors pop up in the string.h header file during the build: (183) :Error, illegal function argument type (183) :Error, function declaration syntax error. (35) :Error, data type declaration error
Line 183 is: void Format( LPCSTR lpcszFormat, ... ); and 35 is: class string
Any ideas? It doesn't seem like there is (or should be) an error in string.h
Thanks. - Aaron
|
2 L A T E S T R E P L I E S (Newest First) |
avallett |
Posted - 09/14/2007 : 11:18:22 AM Hi Joe, thanks for your reply. I can't even get this simple code to build (or other examples as well):
/*------------------------------------------------------------------------------* * File Name: * * Creation: * * Purpose: OriginC Source C file * * Copyright (c) ABCD Corp. 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 * * All Rights Reserved * * * * Modification Log: * *------------------------------------------------------------------------------*/ //////////////////////////////////////////////////////////////////////////////////// // you can include just this typical header file for most Origin built-in functions and classes // and it takes a reasonable amount of time to compile, #include <origin.h> // this file include most of the other header files except the NAG header, which takes longer to compile // NAG routines // #include <OC_nag.h> // this contains all the NAG headers,
////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////// // start your functions here
void test() { printf("hello world\n"); }
I'm wondering if my errors signal a problem with the compiler? Thanks for your help. |
joseph_king |
Posted - 09/12/2007 : 11:07:15 PM Hi avallett, Thanks for reporting this problem. We can't reproduce your problem. Could you give us your sample code in detail?
Maybe we can find the problem. Thanks.
OriginLab Technical Services |
|
|