build

Registration free COM: VB6 Executable referencing VB6 DLL

二次信任 提交于 2021-02-07 20:48:47
问题 So, I've got a single VB6 executable that references multiple VB6 COM DLLs. Is it possible for me to generate, on-the-fly, a manifest for the executable as well as a manifest for each of the referenced DLLs? If so, then how? I would like to perform this operation as part of our build process without having to register the COM DLLs as part of the process. NOTE: All the reg-free COM examples that I've found so far involve .NET interop, which is not a requirement for what I'm doing. [EDIT] After

Registration free COM: VB6 Executable referencing VB6 DLL

你离开我真会死。 提交于 2021-02-07 20:48:31
问题 So, I've got a single VB6 executable that references multiple VB6 COM DLLs. Is it possible for me to generate, on-the-fly, a manifest for the executable as well as a manifest for each of the referenced DLLs? If so, then how? I would like to perform this operation as part of our build process without having to register the COM DLLs as part of the process. NOTE: All the reg-free COM examples that I've found so far involve .NET interop, which is not a requirement for what I'm doing. [EDIT] After

Golang Build Constraints Random

我们两清 提交于 2021-02-07 20:36:14
问题 I have two go files with different build constraints in the header. constants_production.go: // +build production,!staging package main const ( URL = "production" ) constants_staging.go: // +build staging,!production package main const ( URL = "staging" ) main.go: package main func main() { fmt.Println(URL) } When I do a go install -tags "staging" , sometimes, it prints production ; Sometimes, it prints staging . Similarly, when I do go install -tags "production" ,... How do I get a

Golang Build Constraints Random

ⅰ亾dé卋堺 提交于 2021-02-07 20:34:53
问题 I have two go files with different build constraints in the header. constants_production.go: // +build production,!staging package main const ( URL = "production" ) constants_staging.go: // +build staging,!production package main const ( URL = "staging" ) main.go: package main func main() { fmt.Println(URL) } When I do a go install -tags "staging" , sometimes, it prints production ; Sometimes, it prints staging . Similarly, when I do go install -tags "production" ,... How do I get a

How do I add objects with a custom extension to a cmake library?

巧了我就是萌 提交于 2021-02-07 20:10:54
问题 I'd like to add some object files to a CMake static library, but they have a custom extension. Here's what I've tried: set(SRCS testfile.cxx jsobj.js) add_library(testlib STATIC ${SRCS}) When made, CMake invokes ar testfile.cxx.o (ie the other file is completely ignored). How do I get it included in the archive? Here are some other tricks I've tried: list(APPEND CMAKE_CXX_SOURCE_FILE_EXTENSIONS js) list(APPEND CMAKE_C_SOURCE_FILE_EXTENSIONS js) # no luck add_custom_command(OUTPUT ${CMAKE

How do I add objects with a custom extension to a cmake library?

南楼画角 提交于 2021-02-07 19:58:35
问题 I'd like to add some object files to a CMake static library, but they have a custom extension. Here's what I've tried: set(SRCS testfile.cxx jsobj.js) add_library(testlib STATIC ${SRCS}) When made, CMake invokes ar testfile.cxx.o (ie the other file is completely ignored). How do I get it included in the archive? Here are some other tricks I've tried: list(APPEND CMAKE_CXX_SOURCE_FILE_EXTENSIONS js) list(APPEND CMAKE_C_SOURCE_FILE_EXTENSIONS js) # no luck add_custom_command(OUTPUT ${CMAKE

com.android.tools.r8.errors.a: MethodHandle.invoke and MethodHandle.invokeExact are only supported starting with Android O

时光怂恿深爱的人放手 提交于 2021-02-07 19:00:21
问题 I'm developping android native applications and i have for them a library project containing all the common tools for these applications. I was importing my library with jfrog artifactory and it was working well ; now i want to use git and sub-module to have my library inside my project as a module to be able to work both on app and library at the same time. But now (in my projects containing two modules (app and library)), the build fails... I've tried a lot of things before to ask help here

How to build Boost::program_options

回眸只為那壹抹淺笑 提交于 2021-02-07 13:29:40
问题 I wanted to use boost::program_options. After I installed boost, I think that I have to build separatly program_options (http://www.boost.org/doc/libs/1_43_0/more/getting_started/windows.html). But I don't know how to do it. I am trying to compile the C:\Program Files\boost\boost_1_42\libs\program_options\example\first.cpp (http://www.boost.org/doc/libs/1_42_0/doc/html/program_options/tutorial.html) but probably due to I didn't build the library I have this error: LINK : fatal error LNK1104:

How to build Boost::program_options

随声附和 提交于 2021-02-07 13:29:15
问题 I wanted to use boost::program_options. After I installed boost, I think that I have to build separatly program_options (http://www.boost.org/doc/libs/1_43_0/more/getting_started/windows.html). But I don't know how to do it. I am trying to compile the C:\Program Files\boost\boost_1_42\libs\program_options\example\first.cpp (http://www.boost.org/doc/libs/1_42_0/doc/html/program_options/tutorial.html) but probably due to I didn't build the library I have this error: LINK : fatal error LNK1104:

How to build Boost::program_options

帅比萌擦擦* 提交于 2021-02-07 13:26:58
问题 I wanted to use boost::program_options. After I installed boost, I think that I have to build separatly program_options (http://www.boost.org/doc/libs/1_43_0/more/getting_started/windows.html). But I don't know how to do it. I am trying to compile the C:\Program Files\boost\boost_1_42\libs\program_options\example\first.cpp (http://www.boost.org/doc/libs/1_42_0/doc/html/program_options/tutorial.html) but probably due to I didn't build the library I have this error: LINK : fatal error LNK1104: