What do these AngularCli errors mean, when there's no "problems" detected in VsCode? - node.js

Firstly, this is a follow up question from here:
and.... secondly, I am only getting these errors in the Terminal btw. I'm not that new to Angular but very new to FireStore, and Firebase :)
I have created an account with Firebase for the first time, and I think I copied over all the api stuff correctly, and when I look in VsCode, no problems show up. However, I was wondering why nothing was showing up in localhost right... so I look into my terminal, the command line, and these are some errors that are showing up.
Heres some steps I took:
Deleted node modules
npm cache clean --force
npm install
but then I'm still getting the same errors!
Build at: 2021-07-19T15:14:31.757Z - Hash: 1d1a58a540ce70023842 - Time: 20427ms
Warning: D:\WEBSITES\Projects\clientpanel\node_modules\angularfire2\node_modules\#angular\fire\__ivy_ngcc__\es2015\firebase.app.module.js depends on 'firebase/app'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: D:\WEBSITES\Projects\clientpanel\node_modules\firebase\firestore\dist\index.esm.js depends on '#firebase/firestore'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: D:\WEBSITES\Projects\clientpanel\src\app\app.module.ts depends on 'angularfire2'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: D:\WEBSITES\Projects\clientpanel\src\app\app.module.ts depends on 'angularfire2/auth'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: D:\WEBSITES\Projects\clientpanel\src\app\app.module.ts depends on 'angularfire2/firestore'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Error: node_modules/angularfire2/node_modules/#angular/core/core.d.ts:219:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/#angular/core/src/r3_symbols"' has no exported member 'ɵɵFactoryDeclaration'.
219 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<ApplicationInitStatus, [{ optional: true; }]>;
~~~~~~~~~~~~~~~~~~~~
Error: node_modules/angularfire2/node_modules/#angular/core/core.d.ts:220:26 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/#angular/core/src/r3_symbols"' has no exported member 'ɵɵInjectableDeclaration'.
220 static ɵprov: ɵngcc0.ɵɵInjectableDeclaration<ApplicationInitStatus>;
~~~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/angularfire2/node_modules/#angular/core/core.d.ts:750:26 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/#angular/core/src/r3_symbols"' has no exported member 'ɵɵInjectableDeclaration'.
750 static ɵprov: ɵngcc0.ɵɵInjectableDeclaration<Compiler>;
~~~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/angularfire2/node_modules/#angular/core/core.d.ts:5066:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/#angular/core/src/r3_symbols"' has no exported member 'ɵɵFactoryDeclaration'.
5066 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<PlatformRef, never>;
~~~~~~~~~~~~~~~~~~~~
Error: node_modules/angularfire2/node_modules/#angular/core/core.d.ts:5067:26 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/#angular/core/src/r3_symbols"' has no exported member 'ɵɵInjectableDeclaration'.
5067 static ɵprov: ɵngcc0.ɵɵInjectableDeclaration<PlatformRef>;
~~~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/angularfire2/node_modules/#angular/core/core.d.ts:6454:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/#angular/core/src/r3_symbols"' has no exported member 'ɵɵFactoryDeclaration'.
6454 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<SystemJsNgModuleLoader, [null, { optional: true; }]>;
~~~~~~~~~~~~~~~~~~~~
Error: node_modules/angularfire2/node_modules/#angular/core/core.d.ts:6455:26 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/#angular/core/src/r3_symbols"' has no exported member 'ɵɵInjectableDeclaration'.
6455 static ɵprov: ɵngcc0.ɵɵInjectableDeclaration<SystemJsNgModuleLoader>;
~~~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/angularfire2/node_modules/#angular/core/core.d.ts:6651:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/#angular/core/src/r3_symbols"' has no exported member 'ɵɵFactoryDeclaration'.
6651 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<Testability, never>;
~~~~~~~~~~~~~~~~~~~~
Error: node_modules/angularfire2/node_modules/#angular/core/core.d.ts:6652:26 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/#angular/core/src/r3_symbols"' has no exported member 'ɵɵInjectableDeclaration'.
6652 static ɵprov: ɵngcc0.ɵɵInjectableDeclaration<Testability>;
~~~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/angularfire2/node_modules/#angular/core/core.d.ts:6696:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/#angular/core/src/r3_symbols"' has no exported member 'ɵɵFactoryDeclaration'.
6696 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<TestabilityRegistry, never>;
~~~~~~~~~~~~~~~~~~~~
Error: node_modules/angularfire2/node_modules/#angular/core/core.d.ts:9639:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/#angular/core/src/r3_symbols"' has no exported member 'ɵɵFactoryDeclaration'.
9639 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<ɵConsole, never>;
~~~~~~~~~~~~~~~~~~~~
Error: node_modules/angularfire2/node_modules/#angular/core/core.d.ts:9640:26 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/#angular/core/src/r3_symbols"' has no exported member 'ɵɵInjectableDeclaration'.
9640 static ɵprov: ɵngcc0.ɵɵInjectableDeclaration<ɵConsole>;
~~~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/angularfire2/node_modules/#angular/fire/auth/auth.d.ts:13:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/#angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.
13 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<AngularFireAuth, [null, { optional: true; }, null, null]>;
~~~~~~~~~~~~~~~~~~~~
Error: node_modules/angularfire2/node_modules/#angular/fire/auth/auth.d.ts:14:26 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/#angular/core/core"' has no exported member 'ɵɵInjectableDeclaration'.
14 static ɵprov: ɵngcc0.ɵɵInjectableDeclaration<AngularFireAuth>;
m ~~~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/angularfire2/node_modules/#angular/fire/auth/auth.module.d.ts:4:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/#angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.
4 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<AngularFireAuthModule, never>;
~~~~~~~~~~~~~~~~~~~~
Error: node_modules/angularfire2/node_modules/#angular/fire/auth/auth.module.d.ts:5:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/#angular/core/core"' has no exported member 'ɵɵNgModuleDeclaration'.
5 static ɵmod: ɵngcc0.ɵɵNgModuleDeclaration<AngularFireAuthModule, never, never, never>;
~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/angularfire2/node_modules/#angular/fire/auth/auth.module.d.ts:6:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/#angular/core/core"' has no exported member 'ɵɵInjectorDeclaration'.
6 static ɵinj: ɵngcc0.ɵɵInjectorDeclaration<AngularFireAuthModule>;
~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/angularfire2/node_modules/#angular/fire/firebase.app.module.d.ts:48:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/#angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.
48 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<AngularFireModule, never>;
~~~~~~~~~~~~~~~~~~~~
Error: [0mnode_modules/angularfire2/node_modules/#angular/fire/firebase.app.module.d.ts:49:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/#angular/core/core"' has no exported member 'ɵɵNgModuleDeclaration'.
49 static ɵmod: ɵngcc0.ɵɵNgModuleDeclaration<AngularFireModule, never, never, never>;
~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/angularfire2/node_modules/#angular/fire/firebase.app.module.d.ts:50:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/#angular/core/core"' has no exported member 'ɵɵInjectorDeclaration'.
50 static ɵinj: ɵngcc0.ɵɵInjectorDeclaration<AngularFireModule>;
~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/angularfire2/node_modules/#angular/fire/firestore/firestore.d.ts:30:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/#angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.
30 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<AngularFirestore, [null, { optional: true; }, { optional: true; }, { optional: true; }, null, null, { optional: true; }]>;
~~~~~~~~~~~~~~~~~~~~
Error: node_modules/angularfire2/node_modules/#angular/fire/firestore/firestore.d.ts:31:26 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/#angular/core/core"' has no exported member 'ɵɵInjectableDeclaration'.
31 static ɵprov: ɵngcc0.ɵɵInjectableDeclaration<AngularFirestore>;
~~~~~~~~~~~~~~~~~~~~~~~
0mError: node_modules/angularfire2/node_modules/#angular/fire/firestore/firestore.module.d.ts:7:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/#angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.
7 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<AngularFirestoreModule, never>;
~~~~~~~~~~~~~~~~~~~~
Error: node_modules/angularfire2/node_modules/#angular/fire/firestore/firestore.module.d.ts:8:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/#angular/core/core"' has no exported member 'ɵɵNgModuleDeclaration'.
8 static ɵmod: ɵngcc0.ɵɵNgModuleDeclaration<AngularFirestoreModule, never, never, never>;
~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/angularfire2/node_modules/#angular/fire/firestore/firestore.module.d.ts:9:25 - error TS2694: Namespace '"D:/WEBSITES/Projects/clientpanel/node_modules/angularfire2/node_modules/#angular/core/core"' has no exported member 'ɵɵInjectorDeclaration'.
9 static ɵinj: ɵngcc0.ɵɵInjectorDeclaration<AngularFirestoreModule>;
~~~~~~~~~~~~~~~~~~~~~

you installed an angular library that is no longer in use - angularfire2 is now just #angular/fire
try this from the terminal window or command window
npm uninstall angularfire2
npm uninstall #angular/fire
npm uninstall firebase
in your module where you are importing angular fire make sure you remove any references to it.
then type
ng add #angular/fire
npm install
npm install firebase

Related

#nestjs/swagger install errors

currently, When I install swagger on my nestjs project using yarn install I get the following error. Any ideas what may cause this?
src/ledger/dtos/addOrdersByDate.dto.ts:2:10 - error TS2724: Module
'"../../../node_modules/#nestjs/swagger"' has no exported member
'ApiModelProperty'. Did you mean 'ApiHideProperty'?
2 import { ApiModelProperty } from '#nestjs/swagger';
~~~~~~~~~~~~~~~~
node_modules/#nestjs/swagger/dist/decorators/api-hide-property.decorator.d.ts:1:25
1 export declare function ApiHideProperty(): PropertyDecorator;
~~~~~~~~~~~~~~~
'ApiHideProperty' is declared here.
src/ledger/dtos/addRebatesCharges.dto.ts:1:10 - error TS2724: Module
'"../../../node_modules/#nestjs/swagger"' has no exported member
'ApiModelProperty'. Did you mean 'ApiHideProperty'?
1 import { ApiModelProperty } from '#nestjs/swagger';
~~~~~~~~~~~~~~~~
node_modules/#nestjs/swagger/dist/decorators/api-hide-property.decorator.d.ts:1:25
1 export declare function ApiHideProperty(): PropertyDecorator;
~~~~~~~~~~~~~~~
'ApiHideProperty' is declared here.
src/ledger/dtos/addReturns.dto.ts:2:10 - error TS2724: Module
'"../../../node_modules/#nestjs/swagger"' has no exported member
'ApiModelProperty'. Did you mean 'ApiHideProperty'?
2 import { ApiModelProperty } from '#nestjs/swagger';
~~~~~~~~~~~~~~~~
node_modules/#nestjs/swagger/dist/decorators/api-hide-property.decorator.d.ts:1:25
1 export declare function ApiHideProperty(): PropertyDecorator;
~~~~~~~~~~~~~~~
'ApiHideProperty' is declared here.
src/ledger/dtos/addSellers.dto.ts:2:10 - error TS2724: Module
'"../../../node_modules/#nestjs/swagger"' has no exported member
'ApiModelProperty'. Did you mean 'ApiHideProperty'?
2 import { ApiModelProperty } from '#nestjs/swagger';
~~~~~~~~~~~~~~~~
node_modules/#nestjs/swagger/dist/decorators/api-hide-property.decorator.d.ts:1:25
1 export declare function ApiHideProperty(): PropertyDecorator;
~~~~~~~~~~~~~~~
'ApiHideProperty' is declared here.
src/ledger/dtos/block.dto.ts:2:10 - error TS2724: Module
'"../../../node_modules/#nestjs/swagger"' has no exported member
'ApiModelProperty'. Did you mean 'ApiHideProperty'?
2 import { ApiModelProperty } from '#nestjs/swagger';
~~~~~~~~~~~~~~~~
node_modules/#nestjs/swagger/dist/decorators/api-hide-property.decorator.d.ts:1:25
1 export declare function ApiHideProperty(): PropertyDecorator;
~~~~~~~~~~~~~~~
'ApiHideProperty' is declared here.
src/ledger/dtos/transaction.dto.ts:1:10 - error TS2724: Module
'"../../../node_modules/#nestjs/swagger"' has no exported member
'ApiModelProperty'. Did you mean 'ApiHideProperty'?
1 import { ApiModelProperty } from '#nestjs/swagger';
~~~~~~~~~~~~~~~~
node_modules/#nestjs/swagger/dist/decorators/api-hide-property.decorator.d.ts:1:25
1 export declare function ApiHideProperty(): PropertyDecorator;
~~~~~~~~~~~~~~~
'ApiHideProperty' is declared here.
src/queue/controllers/queue.controller.ts:2:10 - error TS2305: Module
'"../../../node_modules/#nestjs/swagger"' has no exported member
'ApiUseTags'.
2 import { ApiUseTags, ApiOperation, ApiResponse } from
'#nestjs/swagger';
~~~~~~~~~~
src/queue/controllers/queue.controller.ts:10:19 - error TS2345:
Argument of type '{ title: string; }' is not assignable to parameter
of type 'Partial'. Object literal may only specify
known properties, and 'title' does not exist in type
'Partial'.
10 #ApiOperation({ title: 'List queues with message quantity' })
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/shared/controllers/configuration.controller.ts:2:24 - error
TS2305: Module '"../../../node_modules/#nestjs/swagger"' has no
exported member 'ApiUseTags'.
2 import { ApiOperation, ApiUseTags } from '#nestjs/swagger';
~~~~~~~~~~
src/shared/controllers/configuration.controller.ts:12:19 - error
TS2345: Argument of type '{ title: string; }' is not assignable to
parameter of type 'Partial'. Object literal may
only specify known properties, and 'title' does not exist in type
'Partial'.
12 #ApiOperation({ title: 'Get configuration variables' })
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/shared/controllers/history.controller.ts:2:24 - error TS2305:
Module '"../../../node_modules/#nestjs/swagger"' has no exported
member 'ApiUseTags'.
2 import { ApiOperation, ApiUseTags } from '#nestjs/swagger';
~~~~~~~~~~
src/shared/controllers/history.controller.ts:10:19 - error TS2345:
Argument of type '{ title: string; }' is not assignable to parameter
of type 'Partial'. Object literal may only specify
known properties, and 'title' does not exist in type
'Partial'.
10 #ApiOperation({ title: 'Get history for entity' })
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/shared/filters/http-exception.filter.ts:24:34 - error TS2339:
Property 'error' does not exist on type 'string'.
24 error: exception.message.error,
~~~~~
src/shared/filters/http-exception.filter.ts:25:36 - error TS2339:
Property 'message' does not exist on type 'string'.
25 message: exception.message.message,
~~~~~~~
src/shared/filters/http-exception.filter.ts:35:34 - error TS2339:
Property 'error' does not exist on type 'string'.
35 error: exception.message.error,
Based on the documentation from #nestjs/swagger
under "Migration from v3" part, the following decorators have been changed/renamed:
...
#ApiModelProperty is now #ApiProperty
...
There is a list of breaking changes in 4.0 version of swagger package:
https://docs.nestjs.com/openapi/migration-guide#breaking-changes
I guess at least part of the issues is coming from there.
Change ApiModelProperty to ApiProperty

Error building CXX object gnuradio-runtime

I am trying to install a specific version of gnuradio (3.7.10.1). To do so I am not using Pybombs, but I try to do it from source (I am following this).
First I've cloned the github repository, then checkout the appropriate version. It worked fine until I've tried to invoke CMake and build GNU Radio:
mkdir build
cd build
cmake ../
make
During the make, after 6% done, I have the following error:
In file included from /usr/include/c++/7/type_traits:35:0,
from /usr/include/cppunit/tools/StringHelper.h:7,
from /usr/include/cppunit/TestAssert.h:8,
from /usr/include/cppunit/TestCase.h:6,
from /usr/include/cppunit/TestCaller.h:5,
from /usr/include/cppunit/extensions/HelperMacros.h:9,
from /home/cofex/workarea/gnuradio/gnuradio-runtime/lib/math/qa_fxpt.h:26,
from /home/cofex/workarea/gnuradio/gnuradio-runtime/lib/math/qa_fxpt.cc:27:
/usr/include/c++/7/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support \
^~~~~
In file included from /usr/include/cppunit/TestAssert.h:8:0,
from /usr/include/cppunit/TestCase.h:6,
from /usr/include/cppunit/TestCaller.h:5,
from /usr/include/cppunit/extensions/HelperMacros.h:9,
from /home/cofex/workarea/gnuradio/gnuradio-runtime/lib/math/qa_fxpt.h:26,
from /home/cofex/workarea/gnuradio/gnuradio-runtime/lib/math/qa_fxpt.cc:27:
/usr/include/cppunit/tools/StringHelper.h:22:15: error: ‘enable_if’ in namespace ‘std’ does not name a template type
typename std::enable_if<!std::is_enum<T>::value, std::string>::type toString(const T& x)
^~~~~~~~~
/usr/include/cppunit/tools/StringHelper.h:22:24: error: expected unqualified-id before ‘<’ token
typename std::enable_if<!std::is_enum<T>::value, std::string>::type toString(const T& x)
^
/usr/include/cppunit/tools/StringHelper.h:31:15: error: ‘enable_if’ in namespace ‘std’ does not name a template type
typename std::enable_if<std::is_enum<T>::value, std::string>::type toString(const T& x)
^~~~~~~~~
/usr/include/cppunit/tools/StringHelper.h:31:24: error: expected unqualified-id before ‘<’ token
typename std::enable_if<std::is_enum<T>::value, std::string>::type toString(const T& x)
In file included from /usr/include/cppunit/TestCase.h:6:0,
from /usr/include/cppunit/TestCaller.h:5,
from /usr/include/cppunit/extensions/HelperMacros.h:9,
from /home/cofex/workarea/gnuradio/gnuradio-runtime/lib/math/qa_fxpt.h:26,
from /home/cofex/workarea/gnuradio/gnuradio-runtime/lib/math/qa_fxpt.cc:27:
/usr/include/cppunit/TestAssert.h: In static member function ‘static std::__cxx11::string CppUnit::assertion_traits<T>::toString(const T&)’:
/usr/include/cppunit/TestAssert.h:74:42: error: ‘toString’ is not a member of ‘CppUnit::StringHelper’
return CPPUNIT_NS::StringHelper::toString(x);
^~~~~~~~
In file included from /usr/include/cppunit/extensions/HelperMacros.h:9:0,
from /home/cofex/workarea/gnuradio/gnuradio-runtime/lib/math/qa_fxpt.h:26,
from /home/cofex/workarea/gnuradio/gnuradio-runtime/lib/math/qa_fxpt.cc:27:
/usr/include/cppunit/TestCaller.h: At global scope:
/usr/include/cppunit/TestCaller.h:159:37: error: ‘std::function’ has not been declared
TestCaller(std::string name, std::function<void()> test_function, Fixture* fixture):
^~~~~~~~
/usr/include/cppunit/TestCaller.h:159:45: error: expected ‘,’ or ‘...’ before ‘<’ token
TestCaller(std::string name, std::function<void()> test_function, Fixture* fixture):
^
/usr/include/cppunit/TestCaller.h:200:8: error: ‘function’ in namespace ‘std’ does not name a template type
std::function<void()> m_test_function;
^~~~~~~~
/usr/include/cppunit/TestCaller.h: In constructor ‘CppUnit::TestCaller<Fixture>::TestCaller(std::__cxx11::string, CppUnit::TestCaller<Fixture>::TestMethod)’:
/usr/include/cppunit/TestCaller.h:121:6: error: class ‘CppUnit::TestCaller<Fixture>’ does not have any field named ‘m_test_function’
m_test_function( std::bind(test, m_fixture) )
^~~~~~~~~~~~~~~
/usr/include/cppunit/TestCaller.h:121:28: error: ‘bind’ is not a member of ‘std’
m_test_function( std::bind(test, m_fixture) )
^~~~
/usr/include/cppunit/TestCaller.h:121:28: note: suggested alternative: ‘find’
m_test_function( std::bind(test, m_fixture) )
^~~~
find
/usr/include/cppunit/TestCaller.h: In constructor ‘CppUnit::TestCaller<Fixture>::TestCaller(std::__cxx11::string, CppUnit::TestCaller<Fixture>::TestMethod, Fixture&)’:
/usr/include/cppunit/TestCaller.h:138:6: error: class ‘CppUnit::TestCaller<Fixture>’ does not have any field named ‘m_test_function’
m_test_function( std::bind(test, &fixture) )
^~~~~~~~~~~~~~~
/usr/include/cppunit/TestCaller.h:138:28: error: ‘bind’ is not a member of ‘std’
m_test_function( std::bind(test, &fixture) )
^~~~
/usr/include/cppunit/TestCaller.h:138:28: note: suggested alternative: ‘find’
m_test_function( std::bind(test, &fixture) )
^~~~
find
/usr/include/cppunit/TestCaller.h: In constructor ‘CppUnit::TestCaller<Fixture>::TestCaller(std::__cxx11::string, CppUnit::TestCaller<Fixture>::TestMethod, Fixture*)’:
/usr/include/cppunit/TestCaller.h:155:6: error: class ‘CppUnit::TestCaller<Fixture>’ does not have any field named ‘m_test_function’
m_test_function( std::bind(test, fixture) )
^~~~~~~~~~~~~~~
/usr/include/cppunit/TestCaller.h:155:28: error: ‘bind’ is not a member of ‘std’
m_test_function( std::bind(test, fixture) )
^~~~
/usr/include/cppunit/TestCaller.h:155:28: note: suggested alternative: ‘find’
m_test_function( std::bind(test, fixture) )
^~~~
find
/usr/include/cppunit/TestCaller.h: In constructor ‘CppUnit::TestCaller<Fixture>::TestCaller(std::__cxx11::string, int)’:
/usr/include/cppunit/TestCaller.h:162:17: error: ‘fixture’ was not declared in this scope
m_fixture(fixture),
^~~~~~~
/usr/include/cppunit/TestCaller.h:162:17: note: suggested alternative: ‘Fixture’
m_fixture(fixture),
^~~~~~~
Fixture
/usr/include/cppunit/TestCaller.h:163:7: error: class ‘CppUnit::TestCaller<Fixture>’ does not have any field named ‘m_test_function’
m_test_function(test_function)
^~~~~~~~~~~~~~~
/usr/include/cppunit/TestCaller.h:163:23: error: ‘test_function’ was not declared in this scope
m_test_function(test_function)
^~~~~~~~~~~~~
/usr/include/cppunit/TestCaller.h: In member function ‘void CppUnit::TestCaller<Fixture>::runTest()’:
/usr/include/cppunit/TestCaller.h:175:7: error: there are no arguments to ‘m_test_function’ that depend on a template parameter, so a declaration of ‘m_test_function’ must be available [-fpermissive]
m_test_function();
^~~~~~~~~~~~~~~
/usr/include/cppunit/TestCaller.h:175:7: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
In file included from /usr/include/cppunit/extensions/HelperMacros.h:14:0,
from /home/cofex/workarea/gnuradio/gnuradio-runtime/lib/math/qa_fxpt.h:26,
from /home/cofex/workarea/gnuradio/gnuradio-runtime/lib/math/qa_fxpt.cc:27:
/usr/include/cppunit/extensions/TestNamer.h: In member function ‘std::__cxx11::string CppUnit::TestNamer::getTestNameFor(const string&, const E&) const’:
/usr/include/cppunit/extensions/TestNamer.h:70:95: error: ‘toString’ is not a member of ‘CppUnit::StringHelper’
return getTestNameFor(testMethodName) + " with parameter: " + CPPUNIT_NS::StringHelper::toString(val);
^~~~~~~~
In file included from /home/cofex/workarea/gnuradio/gnuradio-runtime/lib/math/qa_fxpt.h:26:0,
from /home/cofex/workarea/gnuradio/gnuradio-runtime/lib/math/qa_fxpt.cc:27:
/home/cofex/workarea/gnuradio/gnuradio-runtime/lib/math/qa_fxpt.h: In static member function ‘static CppUnit::TestSuite* qa_fxpt::suite()’:
/home/cofex/workarea/gnuradio/gnuradio-runtime/lib/math/qa_fxpt.h:36:3: error: ‘unique_ptr’ is not a member of ‘std’
CPPUNIT_TEST_SUITE_END();
^
/home/cofex/workarea/gnuradio/gnuradio-runtime/lib/math/qa_fxpt.h:36:3: error: expected primary-expression before ‘>’ token
CPPUNIT_TEST_SUITE_END();
^
/home/cofex/workarea/gnuradio/gnuradio-runtime/lib/math/qa_fxpt.h:36:3: error: ‘guard’ was not declared in this scope
CPPUNIT_TEST_SUITE_END();
^
In file included from /usr/include/cppunit/extensions/HelperMacros.h:9:0,
from /home/cofex/workarea/gnuradio/gnuradio-runtime/lib/math/qa_fxpt.h:26,
from /home/cofex/workarea/gnuradio/gnuradio-runtime/lib/math/qa_fxpt.cc:27:
/usr/include/cppunit/TestCaller.h: In instantiation of ‘void CppUnit::TestCaller<Fixture>::runTest() [with Fixture = qa_fxpt]’:
/home/cofex/workarea/gnuradio/gnuradio-runtime/lib/math/qa_fxpt.cc:102:1: required from here
/usr/include/cppunit/TestCaller.h:175:22: error: ‘m_test_function’ was not declared in this scope
m_test_function();
~~~~~~~~~~~~~~~^~
/usr/include/cppunit/TestCaller.h:175:22: note: suggested alternative: ‘__fortify_function’
m_test_function();
~~~~~~~~~~~~~~~^~
__fortify_function
gnuradio-runtime/lib/CMakeFiles/test-gnuradio-runtime.dir/build.make:62: recipe for target 'gnuradio-runtime/lib/CMakeFiles/test-gnuradio-runtime.dir/math/qa_fxpt.cc.o' failed
make[2]: *** [gnuradio-runtime/lib/CMakeFiles/test-gnuradio-runtime.dir/math/qa_fxpt.cc.o] Error 1
CMakeFiles/Makefile2:726: recipe for target 'gnuradio-runtime/lib/CMakeFiles/test-gnuradio-runtime.dir/all' failed
make[1]: *** [gnuradio-runtime/lib/CMakeFiles/test-gnuradio-runtime.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
I am not a Linux expert and I am not very familiar to this compiler/library support. I don't really understand where the error comes from and how to correct it.
I use Ubuntu 18.04.
Coud you give me a hand on this please?
Any help would be very appreciated.
Thanks a lot.
/usr/include/c++/7/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
To resolve the above error you need to compile with -std=c++11 flag. Open CMakeLists.txt, find all occurrences or -std=c++98 and change them to -std=c++11. Then go to the build directory, remove CMakeCache.txt and rebuild
sed -i 's/-std=c++98/-std=c++11/g' CMakeLists.txt
cd build
rm CMakeCache.txt
cmake ..
make
Also as the error is in the cppunit and it's used for testing you can try disabling all tests
cd build
rm CMakeCache.txt
cmake -DENABLE_TESTING=OFF ..
make

NestJS fastify swagger errors while building app

I'm using fastify adapter
According to the documentation I have installed the swagger adapter for fastify
npm install --save #nestjs/swagger fastify-swagger
And when I import swagger objects
import { DocumentBuilder, SwaggerModule } from '#nestjs/swagger';
Get multiple errors in the building app stage:
node_modules/#nestjs/swagger/dist/decorators/api-body.decorator.d.ts:4:35 - error TS2304: Cannot find name 'Omit'.
4 declare type RequestBodyOptions = Omit<RequestBodyObject, 'content'>;
~~~~
node_modules/#nestjs/swagger/dist/decorators/api-header.decorator.d.ts:3:43 - error TS2304: Cannot find name 'Omit'.
3 export interface ApiHeaderOptions extends Omit<ParameterObject, 'in'> {
~~~~
node_modules/#nestjs/swagger/dist/decorators/api-param.decorator.d.ts:4:33 - error TS2304: Cannot find name 'Omit'.
4 declare type ParameterOptions = Omit<ParameterObject, 'in' | 'schema'>;
~~~~
node_modules/#nestjs/swagger/dist/decorators/api-property.decorator.d.ts:2:45 - error TS2304: Cannot find name 'Omit'.
2 export interface ApiPropertyOptions extends Omit<SchemaObjectMetadata, 'name' | 'enum'> {
~~~~
node_modules/#nestjs/swagger/dist/decorators/api-property.decorator.d.ts:8:80 - error TS2344: Type '"type" | "enum" | "example" | "format" | "deprecated"' does not satisfy the constraint '"name" | "enum"'.
Type '"type"' is not assignable to type '"name" | "enum"'.
8 export declare function ApiResponseProperty(options?: Pick<ApiPropertyOptions, 'type' | 'example' | 'format' | 'enum' | 'deprecated'>): PropertyDecorator;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/#nestjs/swagger/dist/decorators/api-query.decorator.d.ts:4:33 - error TS2304: Cannot find name 'Omit'.
4 declare type ParameterOptions = Omit<ParameterObject, 'in' | 'schema'>;
~~~~
node_modules/#nestjs/swagger/dist/decorators/api-response.decorator.d.ts:3:46 - error TS2304: Cannot find name 'Omit'.
3 export interface ApiResponseMetadata extends Omit<ResponseObject, 'description'> {
~~~~
node_modules/#nestjs/swagger/dist/decorators/api-response.decorator.d.ts:9:48 - error TS2304: Cannot find name 'Omit'.
9 export interface ApiResponseSchemaHost extends Omit<ResponseObject, 'description'> {
~~~~
node_modules/#nestjs/swagger/dist/document-builder.d.ts:20:14 - error TS2304: Cannot find name 'Omit'.
20 build(): Omit<OpenAPIObject, 'components' | 'paths'>;
~~~~
node_modules/#nestjs/swagger/dist/interfaces/schema-object-metadata.interface.d.ts:3:47 - error TS2304: Cannot find name 'Omit'.
~~~~
Has someone ideas what to do?
Okay, I have found the answer.
Open file tsconfig.json and add this line:
{
compilerOptions: {
"skipLibCheck": true
}
}
I'm not sure, that it is the best way because it will skip your node_modules checking while compiling. But to launch, it helps.

LNK errors during built project with libcurl added

I've solved for 2 weeks how to build libcurl project. Finally today I managed it, I followed http://curl.haxx.se/libcurl/c/Using-libcurl-with-SSH-support-in-Visual-Studio-2010.pdf but after I wanted to add libcurl to my own project, it throws lot of LNK errors. So here is code my own project, where I want to add libcurl. It's only for downloading file from url:
#include "stdafx.h"
#include "DlData.h"
#include "curl.h"
//#define CURL_STATICLIB
//#pragma comment(lib, "libcurld")
//#pragma comment(lib, "ws2_32")
//#pragma comment(lib, "Wldap32.lib")
size_t write_data(void *ptr, size_t size, size_t nmemb, FILE *stream)
{
size_t written = fwrite(ptr, size, nmemb, stream);
return written;
};
int _tmain(int argc, _TCHAR* argv[])
{
DlData test;
test.PrintMsg("this is test!");
test.WaitForClick();
//Part for download file
CURL *curl;
ofstream fp;
CURLcode res;
char *url = "http://football-data.co.uk/mmz4281/1415/E0.csv";
char outfilename[FILENAME_MAX] = "C:\\Users\\zdenik\\Documents\\GitProjects\\Predictor\\Files\\";
curl = curl_easy_init();
if (curl)
{
fp.open(outfilename);
curl_easy_setopt(curl, CURLOPT_URL, url);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_data);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, fp);
res = curl_easy_perform(curl);
/* always cleanup */
curl_easy_cleanup(curl);
fp.close();
}
cin.get();
return 0;
}
I set my project properties properly (C/C++ - General, Preprocessor, Linker - General, Input) and want to build it as application - exe file. So far I everything went well and I was able to create libcurld.lib which I added to linker in my project properties. After I built it, it throws a lot of LNK errors and it looks like there is no lib added. Here is output:
1>------ Build started: Project: Predictor, Configuration: Debug Win32 ------
1> stdafx.cpp
1> Main.cpp
1> DlData.cpp
1> Generating Code...
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: ___iob_func already defined in LIBCMTD.lib(_file.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _calloc already defined in LIBCMTD.lib(dbgcalloc.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _free already defined in LIBCMTD.lib(dbgfree.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _malloc already defined in LIBCMTD.lib(dbgmalloc.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _realloc already defined in LIBCMTD.lib(dbgrealloc.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _memmove already defined in LIBCMTD.lib(memmove.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _strchr already defined in LIBCMTD.lib(strchr.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _strncmp already defined in LIBCMTD.lib(strncmp.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _strrchr already defined in LIBCMTD.lib(strrchr.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _fclose already defined in LIBCMTD.lib(fclose.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _fopen already defined in LIBCMTD.lib(fopen.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: __strtoi64 already defined in LIBCMTD.lib(strtoq.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: __errno already defined in LIBCMTD.lib(dosmap.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _tolower already defined in LIBCMTD.lib(tolower.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _fseek already defined in LIBCMTD.lib(fseek.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _ftell already defined in LIBCMTD.lib(ftell.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _isalpha already defined in LIBCMTD.lib(_ctype.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _isxdigit already defined in LIBCMTD.lib(_ctype.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _fwrite already defined in LIBCMTD.lib(fwrite.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _strtol already defined in LIBCMTD.lib(strtol.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _strtoul already defined in LIBCMTD.lib(strtol.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _isdigit already defined in LIBCMTD.lib(_ctype.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _fputc already defined in LIBCMTD.lib(fputc.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _sprintf already defined in LIBCMTD.lib(sprintf.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _isspace already defined in LIBCMTD.lib(_ctype.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _memchr already defined in LIBCMTD.lib(memchr.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _fflush already defined in LIBCMTD.lib(fflush.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _isalnum already defined in LIBCMTD.lib(_ctype.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _atoi already defined in LIBCMTD.lib(atox.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: __lseeki64 already defined in LIBCMTD.lib(lseeki64.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _getenv already defined in LIBCMTD.lib(getenv.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _isupper already defined in LIBCMTD.lib(_ctype.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _islower already defined in LIBCMTD.lib(_ctype.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _isprint already defined in LIBCMTD.lib(_ctype.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: _isgraph already defined in LIBCMTD.lib(_ctype.obj)
1>MSVCRTD.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info##AAE#ABV0##Z) already defined in LIBCMTD.lib(typinfo.obj)
1>MSVCRTD.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info##AAEAAV0#ABV0##Z) already defined in LIBCMTD.lib(typinfo.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: __read already defined in LIBCMTD.lib(read.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: __write already defined in LIBCMTD.lib(write.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: __strnicmp already defined in LIBCMTD.lib(strnicmp.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: __close already defined in LIBCMTD.lib(close.obj)
1>MSVCRTD.lib(MSVCR110D.dll) : error LNK2005: __open already defined in LIBCMTD.lib(open.obj)
1>LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>libcurld.lib(easy.obj) : error LNK2019: unresolved external symbol __imp__WSAStartup#8 referenced in function _win32_init
1>libcurld.lib(telnet.obj) : error LNK2001: unresolved external symbol __imp__WSAStartup#8
1>libcurld.lib(easy.obj) : error LNK2019: unresolved external symbol __imp__WSACleanup#0 referenced in function _win32_cleanup
1>libcurld.lib(telnet.obj) : error LNK2001: unresolved external symbol __imp__WSACleanup#0
1>libcurld.lib(misc.obj) : error LNK2001: unresolved external symbol __imp__WSAGetLastError#0
1>libcurld.lib(openssl.obj) : error LNK2001: unresolved external symbol __imp__WSAGetLastError#0
1>libcurld.lib(telnet.obj) : error LNK2019: unresolved external symbol __imp__WSAGetLastError#0 referenced in function _printsub
1>libcurld.lib(tftp.obj) : error LNK2001: unresolved external symbol __imp__WSAGetLastError#0
1>libcurld.lib(ftp.obj) : error LNK2001: unresolved external symbol __imp__WSAGetLastError#0
1>libcurld.lib(asyn-thread.obj) : error LNK2001: unresolved external symbol __imp__WSAGetLastError#0
1>libcurld.lib(select.obj) : error LNK2001: unresolved external symbol __imp__WSAGetLastError#0
1>libcurld.lib(sendf.obj) : error LNK2001: unresolved external symbol __imp__WSAGetLastError#0
1>libcurld.lib(connect.obj) : error LNK2001: unresolved external symbol __imp__WSAGetLastError#0
1>libcurld.lib(global.obj) : error LNK2019: unresolved external symbol _OPENSSL_add_all_algorithms_noconf referenced in function _libssh2_init
1>libcurld.lib(openssl.obj) : error LNK2001: unresolved external symbol _OPENSSL_add_all_algorithms_noconf
...
1>libcurld.lib(openssl.obj) : error LNK2019: unresolved external symbol _SSL_load_error_strings referenced in function _Curl_ossl_init
1>libcurld.lib(openssl.obj) : error LNK2019: unresolved external symbol _SSL_SESSION_free referenced in function _Curl_ossl_session_free
1>libcurld.lib(openssl.obj) : error LNK2019: unresolved external symbol _SSL_set_session referenced in function _ossl_connect_step1
1>libcurld.lib(openssl.obj) : error LNK2019: unresolved external symbol _SSL_get_peer_certificate referenced in function _servercert
1>libcurld.lib(openssl.obj) : error LNK2019: unresolved external symbol _SSL_get_peer_cert_chain referenced in function _verifystatus
1>libcurld.lib(openssl.obj) : error LNK2019: unresolved external symbol _SSL_CTX_set_verify referenced in function _ossl_connect_step1
1>libcurld.lib(openssl.obj) : error LNK2019: unresolved external symbol _SSL_CTX_set_default_passwd_cb referenced in function _cert_stuff
1>libcurld.lib(openssl.obj) : error LNK2019: unresolved external symbol _SSL_CTX_set_default_passwd_cb_userdata referenced in function _cert_stuff
1>libcurld.lib(openssl.obj) : error LNK2019: unresolved external symbol _SSL_CTX_check_private_key referenced in function _cert_stuff
1>libcurld.lib(openssl.obj) : error LNK2019: unresolved external symbol _SSL_new referenced in function _cert_stuff
1>libcurld.lib(openssl.obj) : error LNK2019: unresolved external symbol _SSL_free referenced in function _Curl_ossl_close
1>libcurld.lib(openssl.obj) : error LNK2019: unresolved external symbol _SSL_connect referenced in function _ossl_connect_step2
1>libcurld.lib(openssl.obj) : error LNK2019: unresolved external symbol _SSL_read referenced in function _Curl_ossl_shutdown
1>libcurld.lib(openssl.obj) : error LNK2019: unresolved external symbol _SSL_peek referenced in function _Curl_ossl_check_cxn
1>libcurld.lib(openssl.obj) : error LNK2019: unresolved external symbol _SSL_write referenced in function _ossl_send
1>libcurld.lib(openssl.obj) : error LNK2019: unresolved external symbol _SSL_ctrl referenced in function _verifystatus
1>libcurld.lib(openssl.obj) : error LNK2019: unresolved external symbol _SSL_CTX_ctrl referenced in function _ossl_connect_step1
1>libcurld.lib(openssl.obj) : error LNK2019: unresolved external symbol _SSL_get_error referenced in function _Curl_ossl_shutdown
...
1>C:\Users\zdenik\Documents\GitProjects\Predictor\Debug\Predictor.exe : fatal error LNK1120: 213 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
My question is simple. What could be wrong with my project properties settings or how to set libcurld.lib properly?
I finally done it. I downloaded precompiled version of libcurl for Windows 32bit, but before I compiled code, I noticed there is error in char outfilename[FILENAME_MAX] = "C:\Users\zdenik\Documents\GitProjects\Predictor\Files\" row. It is needed to add name of the file at the end of the path string - C:\Users\zdenik\Documents\GitProjects\Predictor\Files\file.csv e.g. It would not cause compile error but app would crash after it's triggering.
After that code compiled successfully.

Qt 4.8.2 + vs2010 + static + project build issues LNK2019 & LNK2005

I had successfully compiled a static version of qt4.8.2 by following the instructions from this post http://www.holoborodko.com/pavel/2011/02/01/how-to-compile-qt-4-7-with-visual-studio-2010/
However, I encountered a list of errors when compile my project, they are LNK2019 & LNK2005 related.
I attached the error messages at the bottom.
For the LNK2005 related errors , I included LIBCMT at Linker->Input->Ignore Specific Default Libraries, and its related errors disappear from the error list, but is that the right way to do it?
For the LNK2019 related errors, I couldn't resolve them, please give me some instructions.
Here is my project settings:
C/C++ -> Code Generation -> Runtime Library: Multi-threaded Debug (/MTd)
C/C++ -> Language -> Treat WChar_t As Built in Type: No ( /Zc:wchar_t- )
Linker-> Input -> Additional Dependencies:
Imm32.lib
Ws2_32.lib
winmm.lib
qtmaind.lib
QtCored.lib
QtGuid.lib
wsock32.lib
LNK2019 related error messages:
- Error 161 error LNK2019: unresolved external symbol
"__declspec(dllimport) public: class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > __thiscall
QString::toStdString(void)const "
(__imp_?toStdString#QString##QBE?AV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##XZ)
referenced in function "private: void __thiscall
MainForm::on_actionConfiguration_triggered(void)"
(?on_actionConfiguration_triggered#MainForm##AAEXXZ) C:\Working\ProjLocation\test\mainform.obj test
- Error 163 error LNK2019: unresolved external symbol
"__declspec(dllimport) public: class QString & __thiscall
QString::append(char const *)" (__imp_?append#QString##QAEAAV1#PBD#Z)
referenced in function "private: void __thiscall
MainForm::summaries_series(struct series const *)"
(?summaries_series#MainForm##AAEXPBUseries###Z) C:\Working\ProjLocation\test\mainform.obj test
- Error 162 error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall QString::QString(char const
*)" (__imp_??0QString##QAE#PBD#Z) referenced in function "private: void __thiscall MainForm::on_actionLogin_triggered(void)"
(?on_actionLogin_triggered#MainForm##AAEXXZ) C:\Working\ProjLocation\test\mainform.obj test
LNK2005 related error messages:
- Error 12 error LNK2005: __set_invalid_parameter_handler already defined in LIBCMTD.lib(invarg.obj) C:\Working\ProjLocation\test\LIBCMT.lib(invarg.obj) test
<more LIBCMT & LIBCMTD related errors…..>
- Error 17 error LNK2005: “void __cdecl _invalid_parameter(unsigned short const *,unsigned short const *,unsigned short const *,unsigned int,unsigned int)” (?_invalid_parameter##YAXPBG00II#Z) already defined in LIBCMTD.lib(invarg.obj) C:\Working\ProjLocation\test\LIBCMT.lib(invarg.obj) test
The default Qt project's properties created by the vs add-in was changed, after I re-compiled the Qt source.

Resources