Skip to content

Instantly share code, notes, and snippets.

@acalism
Last active August 12, 2018 02:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acalism/e7fdfcf4a155772296d3183ca0ae0551 to your computer and use it in GitHub Desktop.
Save acalism/e7fdfcf4a155772296d3183ca0ae0551 to your computer and use it in GitHub Desktop.
ld error. It's really difficult to locate the problem.
// in header file
extern struct LALIMtopAPI {
__unsafe_unretained NSString *logout;
__unsafe_unretained NSString *login;
} const kLALIMtopAPI;
// implementation file
struct LALIMtopAPI const kLALIMTopAPI = {
.login = @"com.new.member.user.login",
.logout = @"com.new.member.user.logout",
};
@acalism
Copy link
Author

acalism commented Aug 12, 2018

There is a name inconsistence error. Have you found it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment