The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 string.h compile error
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

avallett

USA
Posts

Posted - 09/11/2007 :  5:16:28 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

joseph_king

China
Posts

Posted - 09/12/2007 :  11:07:15 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

avallett

USA
Posts

Posted - 09/14/2007 :  11:18:22 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000