compilation

How to get a whole list of compiled files of Linux kernel?

蓝咒 提交于 2019-12-02 03:52:12
I'm working on different Android projects and need to setup project in Source Insight for different kernel source tree. There are many unused files in kernel, I want to find a method to pick out all .c,.h,.S files that are compiled in kernel. I was nearly crazy when I pick the source files manually. I'd wrote a script that can pick up the files corresponding to the .o files, but there are some .o files are compiled by multiple .c files, which make it more complicated. Is there an easier way to know what files are handled in the compiling process? Any information would be greatly appreciated.

cannot run a simple java code

﹥>﹥吖頭↗ 提交于 2019-12-02 03:45:29
问题 I have downloaded a java developers kit for my 64bit windows 7, wrote down my code in the notepad, though the code is compiling from the command prompt and creating a .class file, but its refusing to run showing the error code: java.lang.NoClassDefFoundError: first Caused by: java.lang.ClassNotFoundException: first at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang

C++ private variable with no default ctor - not compiling?

佐手、 提交于 2019-12-02 03:34:22
问题 I have a class obj1 that has no default constructor, and class obj2 that also doesn't have a default constructor, and has as private variable an element of obj1: I would like something like the following code - but actually this doesn't compile, telling me that obj1 has no default constructor. class obj1{ obj1(some parameters){}; } class obj2{ obj1 _myObj1; obj2(some parameters){ _myObj1 = obj1(some parameters) } } any ideas? 回答1: Make the constructor of obj1 public and use initialization

Android: compile error Util.toByteArray (taken from an example)

老子叫甜甜 提交于 2019-12-02 02:56:36
I am trying to compile this sample of code in my Android app to have crypt/decrypt feature. I found that code here http://apachejava.blogspot.it/2012/04/androidencryption-made-easy.html I don't know if it's good but that's not relevant here. When compiling it's all OK but Util.toByteArray produces this error "Util cannot be resolved". Replacing Util with Utils is not any useful. Any help? Part of the needed code is missing in the page you link : the author forgot to show his Util class which obviously contains a toByteArray function . Solution 1 : use commons IO Replace Util.toByteArray(cis);

Confused about how Intellij compiles things and deals with resources

流过昼夜 提交于 2019-12-02 02:45:21
I'm quite new to IntelliJ from visual studio, and I'm generally quite confused about how resource files work in an IntelliJ project. I'm read a few questions & answers about getting resources onto the classpath, as well as the IntelliJ docs, but am still confused. I have a few further questions: Some questions mention maven, some not. How do maven projects differ from normal modules in how they compile things and deal with resources? When I run a main method from within IntelliJ, where does it run it from? Directly from the compiled .class files, or from the generated jar ? Where do both those

Getting GLEW to compile in Code::Blocks

╄→гoц情女王★ 提交于 2019-12-02 02:43:42
I'm wanting to get into and learn OpenGL in C++ and am using Code::Blocks. I was able to get freeglut to work, along with several online examples (as well as the example that ships with CB). However, when I try to include GLEW for some tutorials I'm following, I get the following compiler errors: obj\Debug\main.o||In function `RenderSceneCB':| C:\C Programs\OpenGL Test\main.cpp|12|undefined reference to `_imp____glewEnableVertexAttribArray'| C:\C Programs\OpenGL Test\main.cpp|13|undefined reference to `_imp____glewBindBuffer'| C:\C Programs\OpenGL Test\main.cpp|14|undefined reference to `_imp_

Can you cimport an .so file?

家住魔仙堡 提交于 2019-12-02 02:19:46
I have an .so file called tissue-classifier.cpython-37m-x86_64-linux-gnu.so from an external library that I want to import so that I can extend it in one of my local classes. Since I am extending a class, I need to import it as an extension type using cimport and I am wondering if this is even possible. If I use a normal import statement then I will be left with a Python compiled version which cannot be used to extend a cdef class in my current file. When I try to cimport the tissue_classifier file, it gives me the error that tissue_classifier.pxd file could not be found which makes sense

C++ private variable with no default ctor - not compiling?

喜夏-厌秋 提交于 2019-12-02 02:11:04
I have a class obj1 that has no default constructor, and class obj2 that also doesn't have a default constructor, and has as private variable an element of obj1: I would like something like the following code - but actually this doesn't compile, telling me that obj1 has no default constructor. class obj1{ obj1(some parameters){}; } class obj2{ obj1 _myObj1; obj2(some parameters){ _myObj1 = obj1(some parameters) } } any ideas? Make the constructor of obj1 public and use initialization list in obj2 . class obj1{ public: obj1(some parameters){}; }; class obj2{ obj1 _myObj1; obj2(some parameters)

cannot run a simple java code

♀尐吖头ヾ 提交于 2019-12-02 01:58:54
I have downloaded a java developers kit for my 64bit windows 7, wrote down my code in the notepad, though the code is compiling from the command prompt and creating a .class file, but its refusing to run showing the error code: java.lang.NoClassDefFoundError: first Caused by: java.lang.ClassNotFoundException: first at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at

QT versions, kits and compilers

左心房为你撑大大i 提交于 2019-12-02 01:56:10
I am new in QT and was wondering what is the difference between QT versions, kits and compilers. In my "Build & Run" tab are avilable: Kits: Desktop Qt 5.4.2 MSVC2013 64bit2 Desktop Qt 5.5.0 MSVC2013 64bit Qt Versions: Qt 5.4.2 MSVC2013 64bit2 and some qmake.exe path Qt 5.5.0 MSVC2013 64bit and some qmake.exe path Compilers: Microsoft Visual C++ Compiler 12.0(x86) Microsoft Visual C++ Compiler 12.0(amd64) Microsoft Visual C++ Compiler 12.0(x86_amd64) Microsoft Visual C++ Compiler 12.0(x86_arm) Microsoft Visual C++ Compiler 12.0(amd64_arm) Microsoft Visual C++ Compiler 9.0(x86) Microsoft Visual