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
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 string.h compile error

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000