Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem with C++ preprocessor

ONEEYEMANNov 4 2020

Hi, guys,
I'm working on Solaris x86 with Solaris Studio 12.6 C++ project trying to port it to build and run on Solaris.

It is successfully build on Linux with gcc, however dmake/CC has problem.

Following code:

#include "../foo/res/a.xpm"

gives an error saying "Can't open the file a.xpm"

Of course file exist in that specific location.

Is there any options to the compiler I'm missing?

In the IDE I changed to build for 64-bit and C++11.

Thank you for any suggestions.

Comments

Post Details

Added on Nov 4 2020
10 comments
218 views