Arm Community
Site
Search
User
Site
Search
User
Groups
Arm Research
DesignStart
Education Hub
Graphics and Gaming
High Performance Computing
Innovation
Multimedia
Open Source Software and Platforms
Physical
Processors
Security
System
Software Tools
TrustZone for Armv8-M
中文社区
Blog
Announcements
Artificial Intelligence
Automotive
Healthcare
HPC
Infrastructure
Innovation
Internet of Things
Machine Learning
Mobile
Smart Homes
Wearables
Forums
All developer forums
IP Product forums
Tool & Software forums
Pelion IoT Platform
Support
Open a support case
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Developer Community
Tools and Software
Software Tools
Jump...
Cancel
Software Tools
Arm Development Studio forum
Precompiled Header
Tools, Software and IDEs blog
Forums
Videos & Files
Help
Jump...
Cancel
New
Replies
5 replies
Subscribers
127 subscribers
Views
2432 views
Users
0 members are here
Related
Precompiled Header
Offline
andredz
over 7 years ago
Note: This was originally posted on 8th June 2010 at http://forums.arm.com
Problem:
I've been trying to utilize precompiled header option, but with no luck. Even after installing patch 771 for RVCT 4.0.
Here what I'm trying to do.
Assume I have 3 source files and 1 header:
0. /myproject/inc/aaa.h
-----------------------------------
// a bunch of definitions
1. /myproject/src/AAA.c (created this file to include only the header file and compiled with --create_pch=AAA.pch)
------------------------------
#include "aaa.h" // this is a very large file
//eof
2. /myproject/src/File1.c (compiled with --use_pch=AAA.pch)
---------------------------------
#include "aaa.h"
// some codes
3. /myproject/differentsrc/File2.c (compiled with --use_pch==AAA.pch)
---------------------------------
#include "aaa.h"
// some codes
So the problem:
File1.c is using AAA.pch and compiled in a snap without any problem.
But File2.c can't use AAA.pch and does a regular compile (long compile). It gives warning:
"no source": Warning: #629-D: the command line options do not match those used when precompiled header file "AAA.pch" was created
Questions:
- Is this a limitation for the precompiled header option? Files must be in the same directory.
- Are there any other options on how to solve this?
Thank you,
-a
More questions in this forum
By title
By date
By reply count
By view count
By most asked
By votes
By quality
Descending
Ascending
All recent questions
Unread questions
Questions you've participated in
Questions you've asked
Unanswered questions
Answered questions
Questions with suggested answers
Questions with no replies
Suggested Answer
DS52020.0 connection to Musca-A/B boards not working
0
Arm Development Studio
Musca-A
581
views
3
replies
Latest
10 hours ago
by
Ronan Synnott
Suggested Answer
Positioning a function in a Position Independent Executable for ARMV8
0
1986
views
3
replies
Latest
9 days ago
by
Stephen Theobald
Answered
Link a pure binary file to image with scatter file
0
1953
views
3
replies
Latest
9 days ago
by
Ronan Synnott
Answered
Failed to read contents of Internal RAM L1-I_DATA in ARM DS
0
Arm Development Studio
Cache
Debug and Trace Services Layer (DTSL)
4613
views
23
replies
Latest
22 days ago
by
Boon Khai
Suggested Answer
DS-5 connect fail when cortex-r5 is in lock-step mode
0
4221
views
10
replies
Latest
29 days ago
by
Stuart Hirons
>
View all questions in Arm Development Studio forum