legacy-code

link against a legacy library: -lgfortranbegin from a premade makefile

扶醉桌前 提交于 2021-01-20 13:45:46
问题 I got some trouble trying to compile a programm developed by some researcher supposed to compute in a very precise way fourier transform and some other useful operation scientific paper here, whereas all the files needed and the makefile are provided. I use gcc and a version of ubuntu available on windows10 (18.04), so, I linked all the librabries needed by the program and called in the pre-made makefile (fftw, lapack, gfortran..) everything is ok untill here, but once I tried to compile I

link against a legacy library: -lgfortranbegin from a premade makefile

北慕城南 提交于 2021-01-20 13:45:41
问题 I got some trouble trying to compile a programm developed by some researcher supposed to compute in a very precise way fourier transform and some other useful operation scientific paper here, whereas all the files needed and the makefile are provided. I use gcc and a version of ubuntu available on windows10 (18.04), so, I linked all the librabries needed by the program and called in the pre-made makefile (fftw, lapack, gfortran..) everything is ok untill here, but once I tried to compile I

How to make an internal Java package accessible in Eclipse?

淺唱寂寞╮ 提交于 2020-06-25 09:43:28
问题 I have a legacy Java (8) project opened in Eclipse with Java 11 (or Java 10). Eclipse is now rightly complaining about inaccessible packages. E.g. com.apple.laf.AquaComboBoxUI . When compiling from command line I can make those packages accessible explicitly by adding a parameter to javac : --add-exports java.desktop/com.apple.laf=ALL-UNNAMED Is there a way to do the same from inside the Eclipse IDE? I tried to add an accessible rule on the JDK library. But that seems to have no effect. Any

How to use an old single-threaded C++ library in a multithreaded environment

孤街浪徒 提交于 2020-01-14 10:23:10
问题 I have an old C++ library which has been designed for use in single-threaded environmens. The library exposes the interfaces for initialization, which change the internal data structures of the library, and usage, which only reads data and makes calculations. My objective is to use this library in a Windows multithreaded application, with different threads calling instances of the dll initialized with different data. Assuming that rewriting the dll to allow multithreading would be prohibitive

How to use an old single-threaded C++ library in a multithreaded environment

蹲街弑〆低调 提交于 2020-01-14 10:22:55
问题 I have an old C++ library which has been designed for use in single-threaded environmens. The library exposes the interfaces for initialization, which change the internal data structures of the library, and usage, which only reads data and makes calculations. My objective is to use this library in a Windows multithreaded application, with different threads calling instances of the dll initialized with different data. Assuming that rewriting the dll to allow multithreading would be prohibitive

Can I use a *.tlb file without using Regasm to register it on the computer

孤者浪人 提交于 2020-01-02 12:09:43
问题 We are supporting an aging VB6 system that we have written new code for in .Net, put the code into assemblies and then exported *.tlb files for use with the VB6 codebase. My question is, on every computer I wish to run the code on, do I have to use Regasm to register the type libraries? I ask because it gets difficult to keep track of type library installations as computers break, new computers get added etc. Also, if we update the .Net code, we need to go around every computer and re

Separate threads for socket input and output

旧街凉风 提交于 2020-01-02 03:33:06
问题 I got assigned to work on some performance and random crashing issues of a multi-threaded java server. Even though threads and thread-safety are not really new topics for me, I found out designing a new multi-threaded application is probably half as difficult as trying to tweak some legacy code. I skimmed through some well known books in search of answers, but the weird thing is, as long as I read about it and analyze the examples provided, everything seems clear. However, the second I look

How to use the Symfony 2 Container in a legacy app

落爺英雄遲暮 提交于 2020-01-01 02:54:48
问题 Would like to integrate a legacy application with a Symfony 2 application - replacing more and more parts of the old application with Symfony components. The approach I would take is using the Symfony 2 container in the legacy application getting the services that are already configured for the Symfony 2 application. The first services I would like to use are the session and the security context. Questions: Is this feasible? How do I get the configured service container? More info in the

What can you do to a legacy codebase that will have the greatest impact on improving the quality?

蓝咒 提交于 2019-12-31 08:06:39
问题 As you work in a legacy codebase what will have the greatest impact over time that will improve the quality of the codebase? Remove unused code Remove duplicated code Add unit tests to improve test coverage where coverage is low Create consistent formatting across files Update 3rd party software Reduce warnings generated by static analysis tools (i.e.Findbugs) The codebase has been written by many developers with varying levels of expertise over many years, with a lot of areas untested and