How to use precompiled header?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am new to the precompiled header.

I have read about 
it online.

But I still don't fully understand how I can use a 
precompiled header in a 3rd party library.

For example, I have:
- /opt/3rdPartyLib/src/A/B.h
- /opt/3rdPartyLib/src/A/B.h.gch

Then, I tried to compile my code with:
g++ -I/opt/3rdPartyLib/src -H 
-include A/B.h -o myApp.o myApp.cpp

But I got:
x 
/opt/3rdPartyLib/src/A/B.h.gch

So it seems like for some reasons, /opt/3rdPartyLib/src/A/B.h.gch isn't used.

My user doesn't have 
read-write permission to /opt/, but it does have read permission to 
/opt/3rdPartyLib/src/A/B.h.gch tho...so I think that the permission is 
fine.

Any suggestion?

Thanks in advance.


Cheers,
Hei


      


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux