my complier use clang ,it compile well, but allways show some error, just like they can't find the lib path - clang

enter image description here
Actually, when i compile the file ,it works perfectly, but the wrong hint disturb me .
I have installed the stdc++ clang,gcc. they are no problem.
How can i fix it ?

Clang Error - stddef file not found?
I finally find out the answer. fixing it by add
if(CMAKE_EXPORT_COMPILE_COMMANDS)
set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES})
endif()
to my cMakelists.txt

Related

Module build failed (from ./node_modules/#ngtools/webpack/src/index.js):

I have created an application on angular 7 and ionic 4.
I tried to edit app.routing.ts file, setting path and component. From then on I am getting this error below:
ERROR in ./src/app/department/department.module.ts
[ng] Module build failed (from ./node_modules/#ngtools/webpack/src/index.js):
[ng] Error: ENOENT: no such file or directory, open 'C:\Users\x\department\department.module.ts'
[ng] at Object.openSync (fs.js:436:3)
[ng] at Object.readFileSync (fs.js:341:35)
[ng] at Storage.provideSync (C:\Users\x\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:98:13)
Make sure department component exist, check the templateUrl that corresponds to the file name you are referencing. You may have also modified the path unknowingly during modification of app.routing.ts file.
C:\Users\x\department\department.module.ts
This error occurs when your component can't be found with your app.module settings.
Follow these steps to solve your problem:
Check if the module.ts file exists.
Check the relative path.
The path is case sensitive (maybe the .ts file is Department).
Both answer are useful from #trustidkid and #vinay sharma. If there is someone has been facing the same problem;
1-Go to to the file that the error has occurred in. (To go directly to the file, click the error line shortly [CTRL+Click] (CMD+Click on MacOS):
ERROR in ./src/app/department/department.module.ts
Then check the path address if it is exactly true pointing the file. Most of these problems are having similar solutions. Just be sure about the path address of the file you want to point and the address mentioned in the other file which the error occurred.
This problem happens when you delete a component but forgot to delete its import from module.ts.
For example: TestComponent is deleted so you have to also delete:
import { TestComponent } from './test.component'
If you have a folder mapping on a windows machine like me, do not try to build it from a mapped folder, go to the original folder and build it from there.
Mapped Folder has a small icon like this:
In my case I had prime ng version that did not support a particular module, I simply commented it out and it worked.

"Attributes.inc" file not found

I have been using the headers provided in include\llvm and include\llvm-c to try and make my own compiler. However, whenever I try to compile, I get this error. There is no llvm/IR/Attributes.inc in my files nor any LLVM project I have seen. I get this error:
In file included from ./headers/llvm/IR/Function.h:26:
In file included from ./headers/llvm/IR/Argument.h:19:
./headers/llvm/IR/Attributes.h(74,14): fatal error: 'llvm/IR/Attributes.inc' file not found
#include "llvm/IR/Attributes.inc"
What is the problem here?
I have encountered the same issue. I got it fixed by adding the following line to the relevant CMakeLists.txt
> add_dependencies(<Module Name> intrinsics_gen)
make install-llvm-headers may help u

Cannot resolve symbol parse

experts out there! I need your help. I am trying to make my own instant messenger. I refer to this website, and I am stuck at this. There is a read underline bottom of the word, 'parse' and it says Cannot resolve symbol parse. I did everything I could. I put parse-1.10.2.zip in libs file. I added compile fileTree(include: ['*.jar'], dir: 'libs'), compile files('libs/Parse-1.10.2.jar') in build gradle, and added the jar in dependencies. However, the error still there. Can anybody fix this problem? Here's my code:
public class MyApplication extends Application {
// Enable Local Datastore.
Parse.enableLocalDatastore(this);
Parse.initialize(this, "APPLICATION ID", "CLIENT KEY");
}
Have you extracted your zip-archive? I'm no expert but you should put the jar-Files into libs-directory - not a zip-file.
Otherwise try this templates:

Clang_complete not worrking

unfortunately I can't manage to make clang_complete work and I could need your help.
I've already compiled vim 7.4 with python support. Here is the output of vim --version | grep python:
+cryptv +linebreak +python/dyn +viminfo
-cscope +lispindent +python3/dyn +vreplace
I followed this guide: https://vtluug.org/wiki/Clang_Complete
Please note that I've started from a clean installation (i.e. no other plugins and no further entries in my .vimrc (except for those shown in the guide above)).
According to the tutorials I've seen so far everything should be working.
However, if I try to get code completion for the following example nothing happens. If I press <c-x><x-u> I receive the error "completefunc not set".
#include <string>
int main()
{
std::string s;
s.
}
Moreover, I've installed the newest version of clang from source and it in my $PATH.
Is there a way to verify that clang_complete is actually installed?
What might cause this problem?
Any help is much appreciated.
Add
filetype plugin indent on
to your vimrc, its missing from the vimrc snippet in the link. This tells vim to do filetype detection and fire autocommands related to those file types. Without it you won't run the following autocommands.
au FileType c,cpp,objc,objcpp call <SID>ClangCompleteInit()
au FileType c.*,cpp.*,objc.*,objcpp.* call <SID>ClangCompleteInit()
Which probably initalize ClangComplete.

How to get rid of this annoying W8123 warning in my IDE

This is what happened. We downloaded Quickreports 505, installed it, but had to revert to QR504. Now we are getting
[BCC32 Warning] W8123 Path 'C:\Program Files\Embarcadero\RAD Studio\8.0\Quickrep505C' not found - path ignored in option '-I'
This question has been asked on both Embarcadero, and quick report forums but all of their answers has been modify the cbproj file, which do not contain any references to quickreports.
I've tried removing all the references from the IDE but the warning still occurs. Any suggestions on how to fix what should be a simple problem.
Sources:
https://forums.embarcadero.com/thread.jspa?messageID=486503
http://forum.quickreport.co.uk/default.aspx?g=posts&t=1675
Using:
IDE: C++BuilderXE
Note I do not want to disable all warnings in the IDE, and I don't want to disable warnings in Code.
I've had the same annoying problem. To fix this I had to delete all reference to the file in the EnvOptions.proj file. This file is located in the ...AppData\Roaming\Embarcadero\BDS\8.0\ folder.
I got rid of this in my XE7 IDE directly via:
Tools > Options > Environment Options > C++ Options > Path and Directories.
There were invalid paths to libraries being referenced and showing up as warnings in the build. Select each of the ... icons to explore the list of paths included, and select Delete Invalid Paths to remove unused paths.
To enhance and update prior answers, this is what I had to do...
From the menus: [Tools] [Options]
In the Dialog box: [Environment Options] [C++ Options] [Paths and Directories]
Now at the top on the right side in the drop down pick: [32-bit Windows] (it started as Android)
The clear invalid paths in both tabs [Compiler] & [Classic Compiler]
Remove Warning Message File Path Not Found
[BCC32 Warning] W8123 Path 'C:.....' not found - path ignored in option '-I'
Version 10.4.2 Sydney
========
In IDE Right Click on Executable
Options...
C++ Compiler->Directories and Conditionals
Include file search path > (Double click)
then click on
Value from "All configurations - All platforms"
Click on ... in right hand side in text edit box on right hand side
Click on down arrow beside button "Tasks"
Delete Invalid Paths
"Save"
I have this project that I sometimes work at at the office and sometimes at home. And the paths of the external files are not the same on both computers, so I added them both in the folder lists.
Is there another way to supress these warnings without having to remove "invalid" paths from the folder lists?
Edit:
I thought I found the answer, but this setting doesn't work

Resources