Skip to content

Conversation

@pavanky
Copy link
Member

@pavanky pavanky commented Dec 11, 2015

[skip ci]

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

POINTS is a typedef to a struct on Windows in windef.h. That's causing build failure.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ofcourse :|

@umar456
Copy link
Member

umar456 commented Dec 12, 2015

Lets put af/macros.h into the examples folder. I don't think it needs to be in include/af

- Replaced getchar within ifdefs with a new macro
- Cleaned up unneeded "console" options from a few examples
- Removed getchar option for windows.
  - This was already available via cmake
@pavanky pavanky changed the title Cleaning up examples Examples clean up and test fixes Dec 14, 2015
@shehzan10
Copy link
Member

For the record, we will be adding /subsystem:console with the visual studio project files that will be shipped with the ArrayFire installer.

The purpose of the getchar was to prevent the command prompts from exiting without user input when run without the VS debugger (Ctrl + F5). This can be achieved by using /subsystem:console in Linker->System->Subsystem. Hence removing the code within the windows macro.

shehzan10 added a commit that referenced this pull request Dec 14, 2015
Examples clean up and test fixes
@shehzan10 shehzan10 merged commit a3a19b5 into arrayfire:hotfixes-3.2.2 Dec 14, 2015
@pavanky pavanky deleted the example_fixes branch December 14, 2015 21:53
@shehzan10 shehzan10 mentioned this pull request Dec 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants