Click here to Skip to main content
14,697,740 members

Welcome to the Lounge


For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
GeneralRe: Why VS2017 does not suck today either Pin
Rick York6-Feb-19 7:07
mveRick York6-Feb-19 7:07 
GeneralRe: Why VS2017 does not suck today either Pin
H.Brydon6-Feb-19 9:03
professionalH.Brydon6-Feb-19 9:03 
GeneralRe: Why VS2017 does not suck today either Pin
den2k886-Feb-19 5:57
professionalden2k886-Feb-19 5:57 
GeneralRe: Why VS2017 does not suck today either Pin
Chris Losinger6-Feb-19 7:57
professionalChris Losinger6-Feb-19 7:57 
GeneralRe: Why VS2017 does not suck today either Pin
Mark_Wallace6-Feb-19 22:10
MemberMark_Wallace6-Feb-19 22:10 
GeneralRe: Why VS2017 does not suck today either Pin
Kevin McFarlane6-Feb-19 23:39
MemberKevin McFarlane6-Feb-19 23:39 
GeneralMarbleLympics Pin
Jacquers6-Feb-19 1:12
MemberJacquers6-Feb-19 1:12 
General:doh: Pin
Nelek6-Feb-19 0:46
protectorNelek6-Feb-19 0:46 
// a lot of stuff
inline void function01()
  // something
// a lot of stuff

#include subModule.h
// a lot of stuff

#include mainModule.h
void main (void) //it is not like this but it doesn't matter
   // a bit of stuff for the test
   function01 ();//line XXX // This is within the main. It is a call, not a declaration
   // not much more

Opening subModule.h:
Red line under function01, mouse hover --> Error: "void function01() declaration incompatible with <error-type> (declared at line XXX of "Path\Project\myApp.cpp")"

clean and rebuild
Error: myApp.cpp Line XXX "This declaration has no storage class or type specifier"

Delete the "inline"
Error: LNK2005 due to duplicated object in the mainModule.obj and myApp.obj"

Undo ("inline" back), rebuild...
everything OK.

Good is, what good ends, but... D'Oh! | :doh: D'Oh! | :doh: D'Oh! | :doh:

EDIT: given better names, hopefully makes more sense now.

EDIT2: Deleted the "VS2017" of the subject due to Richard's comment below.
By the way... the project is a Visual C++ Win32 Console with ATL/MFC support (used the new project template) where I am playing around with the external Library / API.

EDIT3: added the "main"

EDIT4: Nevermind... it is working. I just wanted to rant about it.

EDIT5: I'll try to simulate it again. If I manage, I'll post the calls again making sure that I give enough code
M.D.V. Wink | ;)

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.

modified 6-Feb-19 16:37pm.

GeneralRe: VS2017... :doh: Pin
RickZeeland6-Feb-19 1:39
mveRickZeeland6-Feb-19 1:39 
GeneralRe: VS2017... :doh: Pin
Nelek6-Feb-19 2:15
protectorNelek6-Feb-19 2:15 
GeneralRe: VS2017... :doh: Pin
CPallini6-Feb-19 1:40
mveCPallini6-Feb-19 1:40 
GeneralRe: VS2017... :doh: Pin
Richard MacCutchan6-Feb-19 2:27
mveRichard MacCutchan6-Feb-19 2:27 
GeneralRe: VS2017... :doh: Pin
Nelek6-Feb-19 2:44
protectorNelek6-Feb-19 2:44 
GeneralRe: VS2017... :doh: Pin
Richard MacCutchan6-Feb-19 3:11
mveRichard MacCutchan6-Feb-19 3:11 
GeneralRe: VS2017... :doh: Pin
Nelek6-Feb-19 3:46
protectorNelek6-Feb-19 3:46 
GeneralRe: VS2017... :doh: Pin
megaadam6-Feb-19 3:22
professionalmegaadam6-Feb-19 3:22 
GeneralRe: VS2017... :doh: Pin
Nelek6-Feb-19 3:40
protectorNelek6-Feb-19 3:40 
GeneralRe: VS2017... :doh: Pin
Nelek6-Feb-19 3:50
protectorNelek6-Feb-19 3:50 
GeneralRe: VS2017... :doh: Pin
megaadam6-Feb-19 4:00
professionalmegaadam6-Feb-19 4:00 
GeneralRe: VS2017... :doh: Pin
Rick York6-Feb-19 5:36
mveRick York6-Feb-19 5:36 
GeneralRe: VS2017... :doh: Pin
Nelek6-Feb-19 11:24
protectorNelek6-Feb-19 11:24 
GeneralRe: VS2017... :doh: Pin
Nelek6-Feb-19 11:27
protectorNelek6-Feb-19 11:27 
GeneralRe: :doh: Pin
CPallini6-Feb-19 4:20
mveCPallini6-Feb-19 4:20 
GeneralRe: :doh: Pin
Nelek6-Feb-19 11:29
protectorNelek6-Feb-19 11:29 
GeneralRe: :doh: Pin
Kornfeld Eliyahu Peter6-Feb-19 5:02
mveKornfeld Eliyahu Peter6-Feb-19 5:02 

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.