Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
Error from Xcode making no sense to me
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="TrueHeresy" data-source="post: 963944" data-attributes="member: 136157"><p>Hi all, this is a ridiculously simple part of my ridiculously simple program. I have other .h files laid out in an identical way with no errors. However this one get's "expected initializer before int"</p><p></p><p>#ifndef SUBTRACT_H</p><p>#define SUBTRACT_H</p><p></p><p>int subtract(int x, int y); //error here is "expected intializer before 'int'</p><p></p><p>#endif</p><p></p><p>so... what do I do, please?</p></blockquote><p></p>
[QUOTE="TrueHeresy, post: 963944, member: 136157"] Hi all, this is a ridiculously simple part of my ridiculously simple program. I have other .h files laid out in an identical way with no errors. However this one get's "expected initializer before int" #ifndef SUBTRACT_H #define SUBTRACT_H int subtract(int x, int y); //error here is "expected intializer before 'int' #endif so... what do I do, please? [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Error from Xcode making no sense to me
Top