executable

C++: Creating a makefile with two executables? C++

旧时模样 提交于 2019-12-01 12:29:49
问题 I have two C++ programs that both share a class. progOne.cpp and progTwo.cpp. They both share a class, fileInfo.cpp with the appropriate fileInfo.h file. This is how I tried to create the makefile. all: progOne.cpp progTwo.cpp progOne: progOne.cpp fileInfo.cpp g++ progOne.cpp fileinfo.cpp -o progOne progTwo: progTwo.cpp fileinfo.cpp g++ progTwo.cpp fileinfo.cpp -o progTwo. I get the error: make: nothing to be done for 'all'. 回答1: You need: all: progOne progTwo This tells make that all depends

Getting External Exception C0000006 in D2006 app - how can I force delphi to load the whole executable?

雨燕双飞 提交于 2019-12-01 11:39:05
I get this occasionally when exiting my app - my app is running the EXE over a network. I understand it's a page fault when part of the EXE is loaded on demand. I have also observed it in the OnDrawCell method of a TDrawGrid, so I'm mystified how that might have caused a page load. Also, the exception kept happening. So my questions: Can Error C0000006 result from other causes? I have made fairly major changes to the way the app manages memory, though nothing out of the ordinary, and I'm confident the code is behaving. How can you make the app load all of itself into memory on startup (in

List of executable formats on Linux [closed]

家住魔仙堡 提交于 2019-12-01 09:03:17
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Where do I find the list of approved/supported executable formats on my Linux system? I am expecting to find a list that contains ELF , Shebang , a.out etc. I already know that I can find in /proc/sys/fs/binfmt_misc a list of user added supported formats, but I want to see the built-in formats in the system.

Unable to use pyexcel-xls with pyinstaller . python executable not working . python version 3.4.4

孤街醉人 提交于 2019-12-01 08:41:29
The program works when run using: Python filename.py but when I create its executable file using " pyinstaller " pyinstaller -F filename.py the executable is successfully created, but execution of the script fails and following error is thrown. Traceback (most recent call last): File "site-packages\pyexcel_io\manager.py", line 160, in create_reader File "site-packages\pyexcel_io\manager.py", line 222, in _get_a_handler pyexcel_io.manager.NoSupportingPluginFound: No suitable library found for xls During handling of the above exception, another exception occurred: Traceback (most recent call

Spring Boot Executable jar structure

╄→尐↘猪︶ㄣ 提交于 2019-12-01 07:52:38
问题 I'm trying to run Spring Boot sample application. And I added couple of images in "images" folder under webapp folder (same level as WEB-INF). I created executable jar, and these images are displayed correctly on web pages. But, I'm scratching my head where is this images folder in executable jar? Are these images in one of the lib jar? Thanks in advance. UPDATE: After trying same jar on another machine the question changes altogather. Now, I can confirm that the images are not part of

Unable to use pyexcel-xls with pyinstaller . python executable not working . python version 3.4.4

瘦欲@ 提交于 2019-12-01 06:37:51
问题 The program works when run using: Python filename.py but when I create its executable file using "pyinstaller" pyinstaller -F filename.py the executable is successfully created, but execution of the script fails and following error is thrown. Traceback (most recent call last): File "site-packages\pyexcel_io\manager.py", line 160, in create_reader File "site-packages\pyexcel_io\manager.py", line 222, in _get_a_handler pyexcel_io.manager.NoSupportingPluginFound: No suitable library found for

c# get assembly executable directory

扶醉桌前 提交于 2019-12-01 06:14:30
I have 2 application. Example App1 and App2 When run nomal App1 will show assembly executable location. But when i call App1 from App2, it return App2 start up location. So, how to get App1 start up path when call App1 from App2? You can get the directory of the currently executing assembly with this: string assemblyPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); GetExecutingAssembly() returns the currently executing assembly and Location is the full path or UNC path of that assembly. Path.GetDirectoryName() returns the directory of a full path. Note that the assembly's

Directly call globally installed Node.js modules

我们两清 提交于 2019-12-01 05:29:24
Supposed I want to write a module for Node.js that shall be installed globally. I do not want to write any C++ (or something else), but plain Node.js code. Basically, this is very easy. Just write the module, and install it using npm install -g . Now, most globally installed modules provide the possibility to call them directly, e.g. you can type express at your command prompt and run the globally installed application bootstrapper of Express. Now my question is: How do I achieve this? If I simply install a module globally, this does not make one of the files available as an executable, or

How to allocate an executable page in a Linux kernel module?

被刻印的时光 ゝ 提交于 2019-12-01 03:53:34
I'm writing a Linux kernel module, and I'd like to allocate an executable page. Plain kmalloc returns a pointer within a non-executable page, and I get a kernel panic when executing code there. It has to work on Ubuntu Karmic x86, 2.6.31-20-generic-pae. #include <linux/vmalloc.h> #include <asm/pgtype_types.h> ... char *p = __vmalloc(byte_size, GFP_KERNEL, PAGE_KERNEL_EXEC); ... if (p != NULL) vfree(p); /** * vmalloc_exec - allocate virtually contiguous, executable memory * @size: allocation size * * Kernel-internal function to allocate enough pages to cover @size * the page level allocator and

How to turn the V8 compiled javascript into an EXE?

时间秒杀一切 提交于 2019-12-01 03:28:58
I know that google's v8 compiles javascript into native machine (binary if I understand correctly) code. Is there a way to take the output and turn it into a exe? I don't think you can directly turn a piece of JavaScript into an executable using V8, but you can probably make an application that bundles the V8 engine with the JavaScript and runs it as a stand-alone. You can find all information about V8 on its project page . Also note that JavaScript can't be completely compiled as it's a dynamic language. With V8, it's JIT-compiled (like .NET, for example.) It's still possible to turn it into