Click here to Skip to main content
14,332,266 members

C / C++ / MFC

 
Questioncpplinq - How to use the aggregate function - Get longest string a string array Pin
Mc_Topaz27-Aug-19 22:24
memberMc_Topaz27-Aug-19 22:24 
AnswerRe: cpplinq - How to use the aggregate function - Get longest string a string array Pin
Graham Breach27-Aug-19 23:13
memberGraham Breach27-Aug-19 23:13 
GeneralRe: cpplinq - How to use the aggregate function - Get longest string a string array Pin
Mc_Topaz27-Aug-19 23:35
memberMc_Topaz27-Aug-19 23:35 
Questionerror LNK2019 Pin
_Flaviu27-Aug-19 1:03
member_Flaviu27-Aug-19 1:03 
AnswerRe: error LNK2019 Pin
Richard MacCutchan27-Aug-19 1:25
protectorRichard MacCutchan27-Aug-19 1:25 
AnswerRe: error LNK2019 Pin
phil.o27-Aug-19 2:12
mvephil.o27-Aug-19 2:12 
GeneralRe: error LNK2019 Pin
Richard MacCutchan27-Aug-19 4:31
protectorRichard MacCutchan27-Aug-19 4:31 
AnswerRe: error LNK2019 Pin
Stefan_Lang29-Aug-19 21:56
memberStefan_Lang29-Aug-19 21:56 
Some things that might have gone wrong:

1. You did not link the object file containing the implementation to your program.
Check your build options to make sure it's there.

2. The declaration in your header does not match your implementation.
Make sure there is no typo, the argument type and number matches, and ...

3. ... that it's compiled as C code. You mentioned a cpp file: if your compiler deducts how to compile a file by it's suffix, it may have compiled a C++ instead of a C function! In that case the linker won't find it. You could check your compiler's documentation for an option to force compilation as C. Alternately, just to find out you're on the right track, try removing 'extern "C"' in your header to find out whether that's actually the cause.


P.S.: Here's a good site pointing out all the details you need to watch out for when mixing C++ and C:
How to mix C and C++[^]
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

GeneralRe: error LNK2019 Pin
_Flaviu29-Aug-19 22:09
member_Flaviu29-Aug-19 22:09 
Questionwarning LNK4099: PDB 'utils.pdb' was not found Pin
_Flaviu26-Aug-19 22:14
member_Flaviu26-Aug-19 22:14 
AnswerRe: warning LNK4099: PDB 'utils.pdb' was not found Pin
Richard MacCutchan26-Aug-19 22:44
protectorRichard MacCutchan26-Aug-19 22:44 
GeneralRe: warning LNK4099: PDB 'utils.pdb' was not found Pin
_Flaviu26-Aug-19 22:51
member_Flaviu26-Aug-19 22:51 
GeneralRe: warning LNK4099: PDB 'utils.pdb' was not found Pin
Richard MacCutchan26-Aug-19 22:56
protectorRichard MacCutchan26-Aug-19 22:56 
Questionwrite a c program to convert decimal no to binary Pin
Devansh Chowdhury23-Aug-19 4:03
memberDevansh Chowdhury23-Aug-19 4:03 
Rant[REPOST] write a c program to convert decimal no to binary Pin
Richard Deeming23-Aug-19 4:52
mveRichard Deeming23-Aug-19 4:52 
QuestionVS2008 entropy - cannot open project resource views RC1015 error Pin
charlieg23-Aug-19 3:13
membercharlieg23-Aug-19 3:13 
AnswerRe: VS2008 entropy - cannot open project resource views RC1015 error Pin
Richard MacCutchan23-Aug-19 3:24
protectorRichard MacCutchan23-Aug-19 3:24 
GeneralRe: VS2008 entropy - cannot open project resource views RC1015 error Pin
charlieg23-Aug-19 4:27
membercharlieg23-Aug-19 4:27 
GeneralRe: VS2008 entropy - cannot open project resource views RC1015 error Pin
Richard MacCutchan23-Aug-19 6:16
protectorRichard MacCutchan23-Aug-19 6:16 
AnswerRe: VS2008 entropy - cannot open project resource views RC1015 error Pin
leon de boer23-Aug-19 4:27
memberleon de boer23-Aug-19 4:27 
GeneralRe: VS2008 entropy - cannot open project resource views RC1015 error Pin
charlieg23-Aug-19 4:39
membercharlieg23-Aug-19 4:39 
GeneralRe: VS2008 entropy - cannot open project resource views RC1015 error Pin
leon de boer1-Sep-19 22:25
memberleon de boer1-Sep-19 22:25 
QuestionRe: VS2008 entropy - cannot open project resource views RC1015 error Pin
Randor 23-Aug-19 7:50
professional Randor 23-Aug-19 7:50 
AnswerRe: VS2008 entropy - cannot open project resource views RC1015 error Pin
charlieg23-Aug-19 15:54
membercharlieg23-Aug-19 15:54 
GeneralRe: VS2008 entropy - cannot open project resource views RC1015 error Pin
Victor Nijegorodov23-Aug-19 21:07
memberVictor Nijegorodov23-Aug-19 21:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.